sed command replace multiple files code example
Example 1: sed replace in multiple file
sed -i 's/abc/xyz/g' xaa1 xab1
Example 2: sed multiple files
for i in xa*; do
sed -i 's/asd/dfg/g' $i
done
sed -i 's/abc/xyz/g' xaa1 xab1
for i in xa*; do
sed -i 's/asd/dfg/g' $i
done