I have a text file which contains texts as below:
ITEM
preset_date 23/10/15
preset_time 22:00:00:00
title Buletin Awani Headlines
clip TAPE_REPLACEMENT
in_src 0
out_src 1500
mode 2
no_vision_trans 1
no_audio_trans 1
type 1
logo_0 1
user_data 08_P_152784839
logo_data_0 0
channel_id 2
end
ITEM
preset_date 23/10/15
preset_time 22:01:00:00
title Episode Number 7
clip HJNAW01HM01AA
in_src 902250
out_src 915700
mode 1
no_vision_trans 1
no_audio_trans 1
type 1
logo_0 1
user_data 08_P_152784840
logo_data_0 0
aspect_ratio 2
channel_id 2
use_subtitle 1
subtitle HJNAW01HM01
end
I want to count the number of occurrences of the word logo
in the file. How do I want to achieve this using Bash file? Appreciate your assistance ..