Horje
replace text with sed Code Example
replace text with sed
sed -i 's/old-text/new-text/g' input.txt
sed replace in file
sed -i 's/foo/bar/g' hello.txt
sed replace with variable
Just concatenate var '"$var"' to replace values string in sed command:
$ sed -i 's/string_to_replace/'"$var"'/g' file_to_replace.txt
replace using sed
#on my mac
sed -i -e 's/old-text/new-text/g' text.txt




Shell

Related
cmake: not found Code Example cmake: not found Code Example
How to find cmake version in ubuntu? Code Example How to find cmake version in ubuntu? Code Example
linux replace string in all files Code Example linux replace string in all files Code Example
styled components props typescript Code Example styled components props typescript Code Example
how to undo a modified file in git Code Example how to undo a modified file in git Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
13