Bash-script for parsing ttype0100_gwpos[0 to 6].tr with grep and regular expressions, and count the number of lines with hits.

while [ $c -lt 7 ]; do more ttype0100_gwpos$c.tr|grep “^d.*-Nw COL” -c; let c=c+1; done

Advertisements