Friday, July 30, 2010

Print every other line of a file

cat blah | awk 'BEGIN{n=0}{if(n%2==0) print $0;n++;}'

No comments:

Post a Comment