[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sort works wrong after 117452 entries

From: Pádraig Brady
Subject: Re: sort works wrong after 117452 entries
Date: Wed, 24 Jan 2007 14:31:09 +0000
User-agent: Thunderbird (X11/20061116)

Kreuzer IT Support wrote:
> Hello there, 
> I have a backup script running which uses sort in order to process those
> files first which are modified last. 
> I use find (pruning several paths) as input for afio, here for the filelist:
>  find / -path /proc -prune -o -path /tmp -prune -o -path /opt -prune -o
> -path /usr/src -prune -o -path /dev/pts -prune -o -path /dev/shm -prune -o
> -path /daten/tmp -prune -o -path /daten/backup -prune -o -path
> /daten/install -prune -o -path /daten/src -prune -o -printf '%p; 
> address@hidden' |
> sort +1 -n -r > /daten/tmp/filelist.txt
> You can see the result in http://www.kreuzer-it.com/filelist.txt 
> As you will notice, the sort for column +1 does it's job only until line
> 117452. Afterwards, the files are assorted. 

I haven't looked at the file in detail, but a couple of suggestions:

1. Use the sort syntax as implemented in:

2. If that doesn't sort it (pardon the pun)
put a LANG=C in front of the sort command to
try to eliminate possible locale issues.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]