Shell/Bash: how to find and replace a string in a file using shell script Example
Shell/Bash Example: This is the "how to find and replace a string in a file using shell script" Example. compiled from many sources on the internet by SimpleTutorials.org
how to find and replace a string in a file using shell script
# replaces ALL(g i.e. global) ouccurences of "original_string" with "new_string", # in the file file_name.ext_name sed -i 's/original_string/new_string/g' file_name.ext_name
* Summary: This "how to find and replace a string in a file using shell script" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!