[H-GEN] sorting out the cats...more or less
Sid Young
syoung at powerup.com.au
Thu Oct 15 00:06:00 EDT 1998
Eric,
Blank lines will be sent to the top of the file, do a "tail" on the file
and see whats at the end, then cat it again, piping it through more.
At 12:17 15/10/98 +1000, you wrote:
>
>Hi
>
>Can anyone shed some light on this for me ?
>
>I'm sorting a text file using
>sort -o output input
>which results in the creation of the output file (which is the same size,
>same permissions, same everything as far as I can see as the file input).
>
>I can cat output, which displays the file and shows me that it is indeed a
>sorted version of the file input.
>
>But when I try to view it with less or more, I can't see anything.
>Also when I try to sdiff it with another file, sdiff treats it as if it
>were blank...
>
>same thing happens if I try doing it as
>sort input > output
>
>any clues would be most gratefully received :-)
>
>I'm on a Redhat Linux 4.2 kernel 2.0.30 (if that makes any difference)
>
>Eric
>
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Eric Hornsby - Systems Librarian / Internet Coordinator
> The Bremer Institute of TAFE
> Byrne Street Bundamba Qld 4304 Australia
> Ph: 61 07 3817 3066 Fax: 61 07 3817 3067
>
>
>
>
Sid Young
=======================================================
Linux!, because reboots are only for *kernel* upgrades!
=======================================================
http://www.synaptic.com.au
n2255291 at student.fit.qut.edu.au
More information about the General
mailing list