wishlist: give cut(1) option to split fields on whitespace (original) (raw)

[Top][All Lists]


[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