I'm writing a sort utility. I need to decide how keys should be specified on the command line. I'm looking for two pieces of guidance:
Note: I'd prefer comments based upon real, actual requirements rather than speculative ones.
My current thinking is that there will be two different, mutually exclusive key specification switches:
Where:
Optional: default 's';
Optional: default, the rest of the record for 's' & 'i'; whatever the string conversion uses when applied at that point in the record.
Where:
Optional: default 's';
Optional: default, the rest of the fields for 's' & 'i'; whatever the string conversion uses when applied at that point in the field.
To save time, my response to "Why not use the same switch format as gnu sort?". Because I find them ambiguous, verbose and inflexible.
Thanks for your time.
In reply to sort utility key specification by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |