how to use multiple files with sed code example Example: sed multiple files for i in xa*; do sed -i 's/asd/dfg/g' $i done