Re: sort on single item only



On Mar 30, 2:00 am, pk <p...@xxxxxxxxxx> wrote:
On Monday 30 March 2009 07:02, Lao Ming wrote:

What if the column delimiters were either spaces or, say, tildes.
Could it still be done?

Man sort, option -t

Well, that's not quite what I meant. Of course, now that I think
about it, what I meant was probably just wishful thinking. For the
most part, the fields look like this:

1234 ABC 56 one-large-text-field

However, they can also look like this (below) since the first field is
actually five chars, the 2nd field is actually four chars. The 3rd
field, however, is always just two chars.

1234~ABC~56 one-large-text-field

If it can be done, I'd still really love to know how.




.



Relevant Pages

  • Re: Regarding Opening a 1GB File for Processing.
    ... >its a text file each record is of 100 chars, ... i need to sort the ... >file based in the first field, ... A local SQL server would be another (possibly ...
    (microsoft.public.dotnet.framework.performance)
  • Re: Sorting Alpha then Numeric
    ... I had to convert the chars, I used Ascand if numeric add 123, I also ... First field enter: ... You will need three blank fields and enter 3 sort order equations ...
    (microsoft.public.access.reports)
  • Re: Regarding Opening a 1GB File for Processing.
    ... its a text file each record is of 100 chars, ... file based in the first field, ... first two fields and sort the list, ... >to do during the sorting. ...
    (microsoft.public.dotnet.framework.performance)
  • Re: sort on single item only
    ... 1234 ABC 56 one-large-text-field ... they can also look like this since the first field is ... actually five chars, the 2nd field is actually four chars. ... What's your sort field? ...
    (comp.unix.shell)
  • Re: Reading textfiles line by line
    ... first field with 10 chars and another with 4 chars, ... to export its data as a text file using 10 chars for first field and 4 chars ... IMO this is the way this file works.. ... >>> the line is then appended to the line without any delimeter whereas ...
    (microsoft.public.dotnet.general)