perl -i -ple 's/old/new/g' /some/file [...]
Globally replaces 'old' with 'new' in /some/file (or some set of files)
Written by Tim Serong
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Perl
Authors

janosgyerik
25.23K

Jean-Remy Duboc
12.29K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#