Sujet : Re: Numerically sorted arguments (in shell)
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.unix.shellDate : 16. Jun 2024, 04:11:29
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v4ll54$3sd11$1@dont-email.me>
References : 1 2
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 16.06.2024 00:49, Lawrence D'Oliveiro wrote:
On Fri, 14 Jun 2024 09:31:18 +0200, Janis Papanagnou wrote:
I'm using ksh here...
At some point, you have to accept that trying to do everything in a shell
language is not the best way to go, and that it is time to switch to a
“real” programming language.
What argument are you trying to make up? What makes you think
I'm doing "everything in a shell"?
(My approach is to take the appropriate tools and language from
the set of (a dozen, or so) "real" languages I know, plus from
the set of a handful of scripting languages that I know.)
For example, Perl or Python could do this much more easily.
I don't know of this feature in Perl or Python; please provide
some hint if there is a feature like the one I need. Some code
samples for demonstration of your point are also welcome.
(Only in case you missed it; I'm not [primarily] looking for a
program; for the described task I'm fine with what I have done.
Rather I'm looking for an inherent feature that supports what I
described elsethread. And I like to have this feature in shell
since a shell is my standard interface to my Unix system. HTH.)
Janis