GNU bug report logs - #9777
CUT

Previous Next

Package: coreutils;

Reported by: Marina Lorente Evangelio <maloev <at> teleco.upv.es>

Date: Mon, 17 Oct 2011 16:20:01 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


Message #7 received at control <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: Marina Lorente Evangelio <maloev <at> teleco.upv.es>
Cc: 9777-done <at> debbugs.gnu.org
Subject: Re: bug#9777: CUT
Date: Mon, 17 Oct 2011 10:23:10 -0600
tag 9777 notabug
thanks

On 10/17/2011 08:30 AM, Marina Lorente Evangelio wrote:
> Hello, as i am not sure if you know spanish i will write in English.
>
> I am a studente os Telecommunications and I am trying to use cut in a
> shell that become this
> Nadal,Rafa
>
> into this:
> Rafa Nadal
>
> But I have not clear the use of cut.
>
> Please write to me (in spanish if possible)and try to help me, I would
> be very pleased with you. Thank's a lot!

Sorry that I can't reply in Spanish.  Meanwhile, you are asking for 
something that cut cannot do.  Per POSIX, cut may not reorder fields; if 
you want to reorder fields, then you have to use a program designed for 
that, such as awk:

$ echo 'Nadal,Rafa' | awk -F, '{print $2 " " $1}'
Rafa Nadal

-- 
Eric Blake   eblake <at> redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




This bug report was last modified 13 years and 222 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.