Pages

Sponsorship

40% off your First Order with GoDaddy.com!

Jan 29, 2010

Substitute Strings in Files with Ruby


Uses a list of regular expressions and replacement strings to make changes in text files.

Put in file "edit-all.rb" and run with
ruby edit-all.rb *.txt

Now accepts the target and the replacement from the command line or from the keyboard.

No comments:

Post a Comment