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; [EMAIL 
> PROTECTED]' |
> 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:
http://www.pixelbeat.org/scripts/newest

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.

Pádraig.


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to