On 5/4/06, Bil Kleb <Bil.Kleb / nasa.gov> wrote:
> Hello,
>
> I found this awk snippet in news:comp.lang.fortran this
> morning, and it made me realize that I don't use Ruby as a
> *nix filter as often as I probably should because I couldn't
> duplicate the capability in "about 10 seconds":
[snip]
>   This took about 10 seconds to write and worked the
>   first time.
>
> Later,
> --
> Bil
> http://fun3d.larc.nasa.gov

puts ARGF.to_a.reverse

About 1 second to write (a bit longer to test :)

Regards,
Sean