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

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

 



At 2:28 PM -0600 11/21/07, Mikkel L. Ellertson wrote:
>Tony Nelson wrote:
>>
>> This all rather begs the question of what tool to use after cut in order to
>> reorder the fields?  Don't pretend the answer is sed or awk, or their ilk.
>How about something like "echo $2 $1"?

That will work if cut's output doesn't need to be quoted, that is, if it
doesn't contain arbitrary characters.
-- 
____________________________________________________________________
TonyN.:'                       <mailto:tonynelson@xxxxxxxxxxxxxxxxx>
      '                              <http://www.georgeanelson.com/>


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

  Powered by Linux