Hi there
Im fairly new to AWK and was wondering if any1 could help with a dileema i currently have. Id like to be able to print uncommented lines which are between a specified range in a file.
I know how to output the range (/start pattern/, /stop pattern/), i know how to do the match (!~ /^#/) but i think awk treats them seperately and doesnt print the lines which satisfy both criteria.
Could someone suggest the correct method or what it is i am dong wrong?
Many thanks
Im fairly new to AWK and was wondering if any1 could help with a dileema i currently have. Id like to be able to print uncommented lines which are between a specified range in a file.
I know how to output the range (/start pattern/, /stop pattern/), i know how to do the match (!~ /^#/) but i think awk treats them seperately and doesnt print the lines which satisfy both criteria.
Could someone suggest the correct method or what it is i am dong wrong?
Many thanks