I have a file which contains \"title\" written in it many times. How can I find the number of times \"title\" is written in that file using the sed command provided that \"t
This might work for you:
sed '/^title/!d' file | sed -n '$='