Answers for "use sed to replace text in a file before using it"

19

replace text with sed

sed -i 's/old-text/new-text/g' input.txt
Posted by: Guest on March-31-2020
0

sed substitute a word in a file by the content in another file

sed "s/100/$(cat -E file2 |tr -d '\n')/;s/\\$/\n/g" file1
Posted by: Guest on August-12-2021

Code answers related to "use sed to replace text in a file before using it"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language