[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wishlist: give cut(1) option to split fields on whitespace
From: |
Pádraig Brady |
Subject: |
Re: wishlist: give cut(1) option to split fields on whitespace |
Date: |
Wed, 09 Sep 2009 22:50:39 +0100 |
User-agent: |
Thunderbird 2.0.0.6 (X11/20071008) |
Mike Coleman wrote:
> It would be really nice if cut(1) could split fields using whitespace
> as a separator (as many other text tools do). Currently I use
>
> $ awk '{ print $3, $4, $5 }'
>
> for this sort of thing, but it seems relatively klutzy, as opposed to (say)
>
> $ cut -w -f 3-5
That was discussed a while ago:
http://lists.gnu.org/archive/html/bug-coreutils/2009-05/msg00153.html
In summary the existing `tr -s '[:blank:]' | cut -d ' '`
was (marginally) deemed sufficient rather than supporting
cut -d '[:blank:]'
cheers,
Pádraig.