On Wed Jun 9, 2021 at 7:50 AM BST, Rob Landley wrote:
> On 6/7/21 11:14 AM, enh wrote:
> > your non-POSIX cut(1) extension covers 80% of the in-the-wild use of awk 
> > anyway
> > :-) if you still talk to any of the busybox folks, we should suggest they 
> > copy
> > that --- it would be nice for it to be a de facto standard so we can get it 
> > into
> > POSIX sometime around the 2040s... (and have made lives better for the 
> > folks who
> > don't care about standards and just want to "get things done" in the 
> > intervening
> > decades!)
>
> Hey Denys: any interest in adding cut -DF compatible with the toybox
> ones?
>
> https://landley.net/toybox/help.html#cut
>
> Ala "cut -DF 3-5" selects words like awk '{print $3" "$4" "$5}'
> and the test case in
> https://github.com/landley/toybox/blob/master/tests/cut.test#L40 is
> doing "cut
> -DF 2,7,5" to show order is preserved.
>
> (I also added -C and -O and some other stuff, but -DF is the important
> bit
> there's interested in standardizing.)
>
> Rob
>
> P.S. Sigh, they've added -z to coreutils. I should add -z too...
This extension sounds great! I definitely have many times I've used awk just to 
achieve this.

If you want it added, perhaps you should submit the patch yourself though.
I'm not so sure anyone else would be interested to spend the time implementing 
it.


Regards,
Peter D.
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to