Add a new column to the file

user951487 picture user951487 · Sep 26, 2011 · Viewed 69.1k times · Source

How can I add a new column to a file with awk codes?

original.file

F1 F2 F3 ..F10 

add F11 to original.file

F1 F2 F3 ..F10 F11

Answer

nick picture nick · Sep 26, 2011

awk '{print $0, "F11"}' original.file