From: Gavin Sinclair Date: 2012-01-07T20:32:42+09:00 Subject: Re: one liner to insert line in a file On Sat, Jan 7, 2012 at 10:28 PM, Josh Cheek wrote: > > Downside is it doesn't work on multiple files since Ruby's $. doesn't reset > for each file (not sure why not). If you pass multiple files on the command line, they're combined through ARGF into one long stream. Gavin