sort with a tab as separator
phd_ivo at gsbacd.uchicago.edu
phd_ivo at gsbacd.uchicago.edu
Sun Aug 19 14:09:28 AEST 1990
In article <13617 at smoke.BRL.MIL>, gwyn at smoke.BRL.MIL (Doug Gwyn) writes...
+So get a real shell:
+ $ echo ' ' | od -c
+ 0000000 \t \n
On a NeXT improved csh (and presumably on some other shells), the following
works:
sort -t\^V^I
that is, the tab must be quoted twice: once with the backslash, and then with
the ^V (control-V) to not substitute spaces.
Once you know this, it is no big deal, of course.
/ivo welch ivo at next.agsm.ucla.edu
More information about the Comp.unix.questions
mailing list