Answers for "sed multiple files"

1

sed replace in multiple file

sed -i 's/abc/xyz/g' xaa1 xab1
Posted by: Guest on August-20-2020
0

sed multiple files

for i in xa*; do
    sed -i 's/asd/dfg/g' $i
done
Posted by: Guest on November-27-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language