wishlist: give cut(1) option to split fields on whitespace (original) (raw)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
From: | Mike Coleman |
---|---|
Subject: | wishlist: give cut(1) option to split fields on whitespace |
Date: | Tue, 8 Sep 2009 11:07:20 -0500 |
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 <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3</mn><mo separator="true">,</mo></mrow><annotation encoding="application/x-tex">3, </annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8389em;vertical-align:-0.1944em;"></span><span class="mord">3</span><span class="mpunct">,</span></span></span></span>4, $5 }'
for this sort of thing, but it seems relatively klutzy, as opposed to (say)
$ cut -w -f 3-5
Mike
- wishlist: give cut(1) option to split fields on whitespace,Mike Coleman <=
- Re: wishlist: give cut(1) option to split fields on whitespace, Pádraig Brady, 2009/09/09
* Re: wishlist: give cut(1) option to split fields on whitespace, Mike Coleman, 2009/09/09
- Re: wishlist: give cut(1) option to split fields on whitespace, Pádraig Brady, 2009/09/09
- Prev by Date:Bug#545721: info: No menu item `mktemp invocation' in node `(coreutils.info.gz)Top'.
- Next by Date:Re: fsetxattr() fails on a writable descriptor?
- Previous by thread:Bug#545721: info: No menu item `mktemp invocation' in node `(coreutils.info.gz)Top'.
- Next by thread:Re: wishlist: give cut(1) option to split fields on whitespace
- Index(es):