[Toybox] Has anybody ever actually used cut -f?

Rob Landley rob at landley.net
Fri Sep 2 13:58:18 PDT 2016


On 09/02/2016 03:26 AM, Bastian Bittorf wrote:
> what about using 'set', it already default to your
> [any spaces also TABS] because of IFS. so:
> 
> set -- one two three four five; echo $2 $3 $4
>
> i has two downsides:
> 1) it's not intuitive
> 2) it overwrites the ARGS

3) It's processing command line arguments instead of lines from stdin,
so is not actually performing an analogous function without adding
"xargs" and a shell loop.

Rob



More information about the Toybox mailing list