fellow monks
what type of syntax would i use (not asking for script) to accomplish the following:
switch columns 2 and 3 if 2 is greater than 3 and if so add a new column to that row that has a + sign
Example Data
red 15 2 smith blue 4 10 walter
Expected Output
red 2 15 smith + blue 4 10 walter
can this be accomplished through awk? or would I use the cut command?
In reply to switching two columns under conditions by gghelpneeded
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |