J
John Fitzsimons
John Fitzsimons wrote:
Thanks. I will check it out. I would prefer the (GUI) approach ahead
of a command line one.
Regards, John.
John Fitzsimons wrote:
You are not sorting from the R.H.S. This can be described in several
ways but you apparently want to find the last(!) period in the line
and sort on the remainder of the line (primary sort)
and from the
beginning of the line to the aforementioned period (secondary sort).
John, do you have your answer or do you need a package?
If you just want to group by extension and don't insist in the correct
sorting order you can do a char-wise sort from the right hand side with:
Maybe you can ask the author to improve the program to your needs? At
least it could be a challenge and would make his program even more
special. ;-)
Another option I
thought of was to do it in three stages :
(A) Reverse the lines eg. with the first line a "reversal" would be ;
gpj.51bew/fnhoj~/:74 etc. etc.
(B) "Sort" in any text sorting program.
(C) Reverse the results obtained in (B).
Now, does anyone know a program/utility that will do (A) ? Make a text
line with abcd change to dcba please ?
Regards, John.
with:
Thanks. Interesting program.
It looks like it will put the extensions together but not put what is
before them in order. Part of the problem with a potential solution is
that in some cases there are items missing. See the third line and the
second space before the : .
940: 0.01%: 9/Aug/04 02:47: /~johnf/web15.jpg
359: 0.01%: 9/Aug/04 02:02: /~johnf/knight.gif
332: : 9/Aug/04 01:40: /~johnf/spirits.htm
328: 0.01%: 9/Aug/04 02:02: /~johnf/welcome.htm
322: 0.02%: 9/Aug/04 02:47: /~johnf/chspirit.htm
299: 0.01%: 9/Aug/04 02:02: /~johnf/world2.jpg
295: : 9/Aug/04 02:02: /~johnf/blue.jpg
Making it a c.s.v. list would not IMO be easy. Another option I
thought of was to do it in three stages :
(A) Reverse the lines eg. with the first line a "reversal" would be ;
gpj.51bew/fnhoj~/:74 etc. etc.
(B) "Sort" in any text sorting program.
(C) Reverse the results obtained in (B).
Now, does anyone know a program/utility that will do (A) ? Make a text
line with abcd change to dcba please ?
Regards, John.
John Fitzsimons said:Making it a c.s.v. list would not IMO be easy. Another option I
thought of was to do it in three stages :
(A) Reverse the lines eg. with the first line a "reversal" would be ;
gpj.51bew/fnhoj~/:74 etc. etc.
(B) "Sort" in any text sorting program.
(C) Reverse the results obtained in (B).
Now, does anyone know a program/utility that will do (A) ? Make a text
line with abcd change to dcba please ?
Regards, John.
Now, does anyone know a program/utility that will do (A) ? Make a text
line with abcd change to dcba please ?
I would use MS javascript - requires Windows Scripting Host 5.6