• find  line in file based on position in file (useful for example to check errors in json file based on error message from Bigquery 🙂 ):
    awk '{ printf("%4i: %s\n",c,$0); c+=length($0)+1 }' filename |grep position
  • pass parameters into awk program:
    awk -v paramname="...." 'print paramname" and someting else"}'