[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sort and ed/red
From: |
graham lawrence |
Subject: |
sort and ed/red |
Date: |
Mon, 18 Jan 2010 15:08:26 -0800 (PST) |
I have the Unix utilities for windows that I downloaded on 9/26/09. 2 problems.
1) ed actually seems to be red. They are the same size on disk, and work
exactly the same, ie ed also only processes files in its own directory, thus
C:\Program Files\gnuwin32>ed update-links.txt
27855
q
C:\Program Files\gnuwin32>ed C:\SortTest.txt
C:\SortTest.txt: No such file or directory
2) I need to sort a word list in strict binary sequence, but what it does is
this
C:\Program Files\gnuwin32>set LC_ALL=POSIX
C:\Program Files\gnuwin32>sort C:\SortTest.txt
a
A
a's
A's
A'S
aa
Aa
AA
aaa
Aaa
AAA
Aab
AAB
Aabenraa
AABENRAA
C:\Program Files\gnuwin32>
I've also tried set LC_COLLATE=POSIX, set LC_ALL=ASCII and set
LC_COLLATE=ASCII. None of them make any difference to the output. LANG and
LANGUAGE are both set to EN.
Ideally I would like it to sort each word as a single right-justified binary
number, so that the sort output would be by word-length and by the ascii
collating sequence within word-length. If that is not possible, just in ascii
sequence is ok, so that I would see this kind of output
A
.
.
ZZZ
.
.
a
etc
Thank you for your help.
Graham Lawrence
- sort and ed/red,
graham lawrence <=