Difference between revisions of "Awk examples"

From lippmann wiki
Jump to: navigation, search
(Created page with "==ignore first columns and print rest== [maarten.tikal] ➤ echo 'column1 column2 column3 column4' | awk '{print substr($0, index($0,$3))}' column3 column4")
(No difference)

Revision as of 22:10, 7 June 2015

ignore first columns and print rest

[maarten.tikal] ➤  echo 'column1 column2 column3 column4' | awk '{print substr($0, index($0,$3))}'
column3 column4