From: Robert Klemme Date: 2006-01-06T17:48:11+09:00 Subject: Re: How do you sort a text file? Danny Abc wrote: > I'm new to Ruby and was wondering how to sort a text file? > > With UNIX scripts, I just use "cat input.txt | sort > output.txt". You are entitled to the "useless cat award". :-) Any reason why you don't just do "sort input.txt > output.txt"? robert