Monday 29 December 2008

number of first fields beginning with a #

find number of fields or columns in a line beginning with # of a file :

awk '$1 ~ /^#/ { print NF,$NF}' pop.pl

Exp : Here, we are trying to match first field which begins with a #.

No comments:

Post a Comment

Tweets by @sriramperumalla