On Sat, Jan 7, 2012 at 5:32 AM, Gavin Sinclair <gsinclair / gmail.com> wrote:

> On Sat, Jan 7, 2012 at 10:28 PM, Josh Cheek <josh.cheek / gmail.com> 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
>
>
Yeah, I guess it's basically awk's NR, but it seems like there should be
something equivalent to awk's FNR