Re: why does "cut" print fields in original order?

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

 



Robert P. J. Day wrote:


i understand that that's not indicated on the man page.  on the
other hand, is there any reason that it *wasn't* done that way?

You need  some reason to type:
sed -e 's/\(.*\):\(.*\):\(.*\):\(.*\):\(.*\):\(.*\):\(.*\)/\7:\1/'

you are a truly sick person, and should seek help.

But it says what you wanted fairly clearly and in much more re-usable terms that a minimalist tool like cut.

--
  Les Mikesell
   lesmikesell@xxxxxxxxx


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux