[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cut: Changing order of output fields
From: |
Stepan Kasal |
Subject: |
Re: cut: Changing order of output fields |
Date: |
Thu, 30 Sep 2004 15:29:51 +0200 |
User-agent: |
Mutt/1.4.1i |
Hello,
On Thu, Sep 30, 2004 at 06:42:31AM +0200, Marco Schmidt wrote:
> output. Simply using "cut -f6,1" to get the sixth input column
> followed by the first input column doesn't work (I don't know if this
> is a bug or feature, I chose this newsgroup anyway).
this is not a bug, its a feature.
> Can this switching of fields be accomplished with one of the other
> core utilities?
cut -f1, cut -f6, and then paste together.
Or, more comfortably, use awk (gawk). See the fine gawk manual (info gawk).
> Is changing the order of fields in output as specified
> after -f an option that could be added to cut (if the maintainers read
> this group)?
I doubt its worth it to add this extension, but I'm not the maintainer.
Wait for an official reply from him.
Regards,
Stepan Kasal