News for hackers. Stuff that matters.
Re:AWK-ward Ruby by phaylon on Tuesday April 26, 2011 @05:05PM (#2487232)
The -e is what tells perl that "this is code, not a filename." One I regularly use (with perl) that doesn't seem to be mentioned yet is -p -i -e to inline modify files line-by-line. This is very nice for global search/replace actions on files found via find, grep or ack.
Re:AWK-ward Ruby by telemachos on Tuesday April 26, 2011 @05:17PM (#2487269)
Yup, -i is very very useful, though I prefer to always call it as -i.bak (=> do the edit in place and make a backup of the original file as "filename.original.bak"), in case I do something hideously wrong.

For what it's worth (you may know this but maybe not everyone does), Ruby also provides the -i flag.