substitute strings in files
Ruby / Rails Code
Please Register to submit score.
| Average Score | 7.0 (of 1 scores) |
| Date Added | Aug 24, 2005 |
| Last Updated | Aug 25, 2005 |
Description
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.
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.
Maybe rather than editing the code with the string and replacement string, it can accept them from the command line?




