bug-textutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Request for feature in cut


From: Jim Meyering
Subject: Re: Request for feature in cut
Date: 06 May 2001 18:59:50 +0200
User-agent: Gnus/5.090003 (Oort Gnus v0.03) Emacs/21.0.103

How about using awk or perl instead?

  $ echo a b c d e| cut -d' ' -f 4,3
  c d

vs.

  $ echo a b c d e | awk '{ print $4, $3 }'
  d c

  $ echo a b c d e | perl -an -e 'printf "$F[3] $F[2]\n"'
  d c

You could even use sed.

Martin Schulte <address@hidden> wrote:
| Sorry for writing to bug-textutils, but I didn't find another address...
|
| I'm using cut 2.0.10, and I assume, the following behaviour is standard, but
| wouldn't it be possible to change it ?
|
| If I do
| cut -f 4,3
| I get the 3rd field first, and the fourth field second. Wouldn't it be
| possible to add an option that the fields will be printed out in the order
| given in the commandline ?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]