Tuesday, April 17, 2012

How to cut first n fields in the text file using awk

To cut first 4 columns of the text file just use:

  awk '{print substr($0, index($0,$4))}'