in reply to Changing ASCII collating sequence for sort
When used within the left or right side of the tr/// operator, hyphen is "magic": it interpolates to the set of characters between the preceding and following character, so ,-; (in the left-hand character sequence) becomes ,-.\/0123456789:;
(and in the right-hand sequence, ,-. "becomes" ,-. because ASCII arranges those three characters as adjacent in exactly that order, so putting the backslash escape in front of that hyphen just happens to make no difference)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Changing ASCII collating sequence for sort
by ibm1620 (Hermit) on Apr 17, 2022 at 23:38 UTC | |
Re^2: Changing ASCII collating sequence for sort
by ibm1620 (Hermit) on Apr 17, 2022 at 23:20 UTC |