bug-coreutils
[Top][All Lists]
Advanced

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

Re: Thoughts on cut


From: Eric Blake
Subject: Re: Thoughts on cut
Date: Thu, 10 Apr 2008 13:22:11 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Marc Perkel on 4/10/2008 12:23 PM:
| I'm not sure if this feature request would be disruptive or not but it
| would be handy.
|
| If I run cut -f 2,1 it would be nice if it put the fields out in the
| order specified. Put field 2 out, then field 1.
|
| Thoughts?

Sorry, but POSIX requires the current behavior of cut.  Besides, it is
easy to use awk to do this sort of work.

$ awk '{ print $2, $1 }'

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkf+aOMACgkQ84KuGfSFAYAB+QCgnOlrVOqtOpY38gb3bPzwOqiU
yxYAniAHy4VOzFcsDp/CLdk520Vex1cH
=rISJ
-----END PGP SIGNATURE-----




reply via email to

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