>>>>> "Danny" == Danny Abc <dannyabc / comcast.net> writes:

    Danny> I'm new to Ruby and was wondering how to sort a text file?
    Danny> With UNIX scripts, I just use "cat input.txt | sort > output.txt".

Why not sort <input.txt >output.txt?
That cat is totally superfluous.

'Andreas

-- 
Wherever I lay my .emacs, there's my $HOME.