DevOps Realtime Working Tutorials
DevOps Realtime Working Scenarios && Solutions for Issues
Sunday, July 28, 2019
How to replace a string in multiple files in linux from command line
find ./ -type f -exec sed -i 's/string1/string2/g' {} \;
For global case insensitive:
find ./ -type f -exec sed -i 's/string1/string2/gI' {} \;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment