From: Christian Neukirchen Date: 2007-05-02T23:42:34+09:00 Subject: Re: Output A File w/ Line Numbers? John Joyce writes: > I'd like to read a file and output its contents (just to terminal is > fine for simplicity) with line numbers. > Is there a Ruby library method that handles this like unix cat? > Of course we can write a looping one-liner, but it seems to me this > function must already exist. Also, nl(1). > love, > John Joyce -- Christian Neukirchen http://chneukirchen.org