On Friday 10 of April 2009 09:18:51 qiwensheng wrote: > Dear Sir or Madam: > > I made a file named words.txt. And it's content as follow: > > > > But I use the "sort -r " command line (sort -r words.txt ) for this file, > and it displays as follow: > > > > So, the result of it does not all reverse the original file in fact. > > Can you give me an explanation of this phenomenon?
Result of "sort -r" is not reversed original file, but the original file sorted in reverse order. The original file is not sorted, that's it! If the original file was already sorted, it would return it in reverse order. Kamil _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils