Aug 4, 2014, 10:40 AM
Post #4 of 5
Actually, if you are using Unix/Linux and bash, it can even be simpler, you don't need another script. This:
Re: [raopatwari] replace path(string) inside scripts
[In reply to]
will make all the substitutions in all the files in the path_to_files directory.
perl -pi.bak -e '
# same syntax for other substitutions to be made
(BTW, it will also create a non-modified copy of each file with the '.bak' extension.)