Hi all,
This may be a stupid question. But I need to count how many ; are in each line in a file.
I have tried the following:
cat <filename> |grep ";" |wc -c
But all I get is the whole count of characters.
Can anyone help?
( "To become Wise, first you must ask Questions"
This may be a stupid question. But I need to count how many ; are in each line in a file.
I have tried the following:
cat <filename> |grep ";" |wc -c
But all I get is the whole count of characters.
Can anyone help?
( "To become Wise, first you must ask Questions"