![]() |
Search and Replace on Unix
How do I do a search and replace on all files across a folder and all subfolders for a perticular string?
|
Perhaps:
find . -type f | while read file; do perl -pe 's/FINDTHISTEXT/REPLACEITWITHTHIS/g' -i "$file"; done You should probably test it out, because I didn't. :) |
All times are GMT -7. The time now is 12:20 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123