Word count while excluding

Hello,

Is there a way to word count a file while excluding lines that have FRP in them?

wc -l "filename"?

Thanks in advance

Gideon

Hi.

You could use grep, then wc.

grep -v FRP filename | wc -l

or

grep -vc FRP filename

You're on the money!

Worked great, thnx a lot :slight_smile: