Random Linux Tips

Posted by Jemshad O K     Category: General

####[ GNU/ One Stanza Tip () ]#######################

Sub : awk [#12] #472

# Count number of lines where col 3 > col 1
$ awk ‘$3 > $1 {print i + “1″; i++}’ textfile

####[banduji (at) symonds.net]################################

Tags: , , ,

Related posts