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

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



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 georgeanelson com>
      '                              <http://www.georgeanelson.com/>


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