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

2016-09-01 Thread scsijon
Message: 2 Date: Thu, 1 Sep 2016 15:29:28 -0500 From: Samuel Holland To: toybox@lists.landley.net, Rob Landley Subject: Re: [Toybox] Has anybody ever actually used cut -f? Message-ID: <9926c62a-75da-0f1c-885e-323cb33c3...@sholland.org> Content-Type:

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

2016-09-01 Thread enh
On Thu, Sep 1, 2016 at 2:23 PM, Rob Landley wrote: > > On 09/01/2016 03:29 PM, Samuel Holland wrote: > > Hello, > > > > On 09/01/2016 02:58 PM, Rob Landley wrote: > >> In theory: > >> > >> echo "one two three four five" | cut -f 2-4 > >> > >> Should be really useful, and mean

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

2016-09-01 Thread Rob Landley
On 09/01/2016 03:29 PM, Samuel Holland wrote: > Hello, > > On 09/01/2016 02:58 PM, Rob Landley wrote: >> In theory: >> >> echo "one two three four five" | cut -f 2-4 >> >> Should be really useful, and mean you don't need awk. In practice, >> posix specifies that the default separator of cut -f is

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

2016-09-01 Thread Rob Landley
In theory: echo "one two three four five" | cut -f 2-4 Should be really useful, and mean you don't need awk. In practice, posix specifies that the default separator of cut -f is TAB, and that the -d delimiter specifier has no way to specify 'arbitrary run of whitespace'. So I propose 2