in reply to Re: Sorting within a file
in thread Sorting within a file

How about

perl -e "@file=<>; print sort { $a <=> $b } @file" test.txt
--------------
It's sad that a family can be torn apart by such a such a simple thing as a pack of wild dogs

Replies are listed 'Best First'.
Re^3: Sorting within a file
by sh1tn (Priest) on Mar 04, 2005 at 21:00 UTC
    Or:
    perl -e "print sort {$a <=> $b} <>" test.txt