I have a file abc.txt and I want to remove specific portion in a file from a bash script.
#######################Media######################
[Media]
comment = Media Files
path = /share22
browseable = yes
read only = yes
guest only = no
#######################end#######################
#######################Add#######################
[Add]
comment = Media Files
path = /share33
browseable = yes
read only = yes
guest only = no
#######################end#######################
#######################Added#####################
[Added]
comment = Media Files
path = /share44
browseable = yes
read only = yes
guest only = no
#######################end#######################
and remove below portion from file
#######################Add#######################
[Add]
comment = Media Files
path = /share33
browseable = yes
read only = yes
guest only = no
#######################end#######################
how can I remove a first portion, second portion or last portion?
Kindly help me!