Tuesday, 18 February 2014

Shell Script to Replace A String In A File

Use the following shell script command to search and override all the occurrences of a search string with a replacement string.
  • sed -i 's/searchString/'replaceString'/g' fileName.ext

No comments:

Post a Comment