Tag: AWK

  • Careful of AWK Comments

    Passing a script with comments from a shell script. If you’re like me, you write awk scripts by creating a file, let’s say script.sh, and it looks something like this (let’s say.. count lines where the 2nd comma-delimited number is greater than 3): #!/bin/sh<br /> awk -F, ‘BEGIN {<br /> # Minimum threashold<br /> THRESHHOLD=3<br […]