bug-coreutils
[Top][All Lists]
Advanced

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

Re: cut command


From: Eric Blake
Subject: Re: cut command
Date: Tue, 10 Jul 2007 06:28:24 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070604 Thunderbird/2.0.0.4 Mnenhy/0.7.5.666

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

ccording to ashish on 7/9/2007 5:25 PM:
> Spam detection software, running on the system "joseki.proulx.com", has
> identified this incoming email as possible spam.

A copy of your mail finally made it to the list, but you probably ought to
resolve the problems detected by the spam trap so that future mail from
you is not lost.

> 
>    i am trying to use cut command for = printing fields  in my order but it
>    is unable to do it.
> 
>    e.g. cut -d" " -f 3,1,2 = filename
> 
>    it always print in field = 1,2,3

Yes, cut is documented to behave this way, as required by POSIX.  From
'cut --help': "Selected input is written in the same order that it is
read, and is written exactly once."

> 
>    there is now option  available.

awk or perl are better tools for rearranging field order.

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

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

iD8DBQFGk3to84KuGfSFAYARArp1AJ9R+1PPrc1Z7RNVabpQN5tiO//QvgCeOcvZ
JEYaaN/fJ3+EeV6JM/6xRGU=
=JmZk
-----END PGP SIGNATURE-----




reply via email to

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