Answers for "linux sed replace once per file"

19

sed replace in file

sed -i 's/foo/bar/g' hello.txt
Posted by: Guest on March-01-2020
0

sed replace first in file

sed '0,/REPLACESTHIS/s//WITHTHAT/' myfile.txt
Posted by: Guest on October-18-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language