On Tue, Dec 17, 2002 at 09:57:33AM +0000, Declan Grady wrote:
> 'head' of before and after sorting at command prompt.
>> [me at mail nuvotem]# head dd_sorted_0118.tmp
dd_sorted_0118.tmp was the file from the script? does the script set
PATH - is it using the same sort as you're using at the command line?
is it using the same args - the script isn't using -n is it?
> . DIA001 10061998
> 1 SCA001 09051995
> 2 HEW001 11101996
> 3 AVI001 11101996
> 4 THO001 11101996
> 5 RSC001 29092000
> 6 RSC001 29092000
> 7 STR001 29092000
> 8 STR001 29092000
> 9 AMV001 29092000
the above looks like a sort -n .
> [me at mail nuvotem]# sort dd_sorted_0118.tmp >sort_again.tmp
> [me at mail nuvotem]# head sort_again.tmp
> 10000 ISA001 08112001
> 10001 ISA001 08112001
> 10002 ICA001 09112001
> 10003 AMV001 31102001
> 10004 JPM001 09112001
> 10005 RSC001 09112001
> 10006 RSC001 09112001
> 10007 MAS001 09112001
> 10008 ISA001 09112001
> 10009 MJA001 09112001
and this one looked like it was just a normal sort.
kevin at ie.suberic.net "I think we need to change the old saying
fork()'ed on 37058400 that we need a building to fall on us,
meatspace place: home because two did and we still don't get it."
http://ie.suberic.net/~kevin --Bill Maher in a Salon interview
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!