12/6/2006
Perl Search and Replace
perl -pi -e "s/SEARCH/REPLACE/" FILES
Example (from Awstats configuration):
perl -pi -e "s/AllowToUpdateStatsFromBrowser=0/AllowToUpdateStatsFromBrowser=1/" *.conf
If SEARCH is a file path, make sure and not beat your head for an hour. Escape the path breaks ('/') or change the regep delimiters (ex. '|'):
perl -pi -e "s|SEARCH|REPLACE|" FILES
Popularity: 10%


