Wednesday, July 25, 2018

How to find and replace string in linux using sed command


   Below command will find string test and replaces it with test1 in all files under current directory

   sed -i 's/test/test1/g' $(find . -type f)

No comments:

Post a Comment