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