| > I can't understand why you are mentioning awk. Cut or choose cannot be compared to awk, awk is a programming language. Because 99% of awk IRL use is just as a fancier cut. It's very rare someone even sets a variable using awk. If you do it, you are a statistical rarity. > Also I don't think that it's so much easier to use than cut. On the other hand every *nix system has cut so if you make scripts with it they are portable. I, for one, never remember the syntax for cut. If "choose" gets a deb, I'll use it: Python slicing is something familiar to me. I don't care if cut is on every unix system: if I have the possibility to install things on the machine, then I'll just install what I need. I have a script for that. If I don't, I'll google/man/--help GNU commands as usual. And as for writing shell scripts, I use Python anyway. |
You say "fancier", I say "working": since cut can't work on general whitespace without a pre-processing phase (e.g. tr), it simply doesn't work for the vast majority of the things I try to shove into it, and I pretty much always end up using awk instead.
Choose means my awk use will fall down by 99% or so.