BrowserUk has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sort utility key specification
by roboticus (Chancellor) on Apr 21, 2012 at 13:53 UTC | |
by BrowserUk (Patriarch) on Apr 21, 2012 at 14:01 UTC | |
by roboticus (Chancellor) on Apr 21, 2012 at 14:31 UTC | |
by BrowserUk (Patriarch) on Apr 21, 2012 at 15:14 UTC | |
by roboticus (Chancellor) on Apr 21, 2012 at 16:57 UTC | |
by davies (Monsignor) on Apr 21, 2012 at 20:06 UTC | |
| |
|
Re: sort utility key specification
by flexvault (Monsignor) on Apr 21, 2012 at 14:21 UTC | |
by BrowserUk (Patriarch) on Apr 21, 2012 at 15:07 UTC | |
by flexvault (Monsignor) on Apr 21, 2012 at 15:35 UTC |