GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Search and Replace on Unix (https://gfy.com/showthread.php?t=315491)

4Pics 06-20-2004 10:30 PM

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?

mullah 06-20-2004 11:34 PM

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