[K12OSN] OT: bug in /sbin/sort?
Petre Scheie
petre at maltzen.net
Tue Aug 22 20:16:02 UTC 2006
The -S does work for ls, but I have some other cases where I'm just sorting some rows in
files, not just the output from ls. I had tried the --key but wasn't smart enough to
figure out that the columns start at 1 rather than 0 like it used to do with the +n
syntax. So, thanks to everyone who pointed out how to make that syntax work. But it
troubles me that the syntax I've been using for 10+ years on all kinds of different
Unixes suddenly doesn't work. Google hasn't turned up any mention of that syntax being
deprecated or of a bug.
Petre
Jim McQuillan wrote:
> Petre,
>
> Dunno about bugs with sort, but why not just use the '-S' option to ls ?
>
> ls -l -S
>
> or
>
> ls -lS
>
>
> Jim McQuillan
> jam at Ltsp.org
>
>
> Petre Scheie wrote:
>> The sort utility (/bin/sort) on my K12LTSP 5 box (FC5) isn't working
>> properly. When I type
>>
>> ls -l |sort +4n
>>
>> I get
>>
>> sort: open failed: +4n: No such file or directory
>>
>> rather than a list of files sorted by their size. It works correctly
>> on my 4.2 (FC4) box, and various other linux & unix boxen, just not on
>> this FC5 box. I don't have any other FC5 boxes to test. Anyone else
>> seeing this?
>>
>> Petre
>>
>> _______________________________________________
>> K12OSN mailing list
>> K12OSN at redhat.com
>> https://www.redhat.com/mailman/listinfo/k12osn
>> For more info see <http://www.k12os.org>
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
>
More information about the K12OSN
mailing list