Hello!
I would like to know how can I tell to count the number of -| (minus followed by a pipe with no space) expressions in one line using grep in a given file.
I tried grep /\-|\ |/ | filename wc -l but this does not seem to work well.
Thank you for your answer.
Regards
/Rob