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