why does "cut" print fields in original order?

Tony Nelson tonynelson at georgeanelson.com
Wed Nov 21 21:26:12 UTC 2007

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

More information about the fedora-list mailing list