I am looking for the sed command to replace text like this "[word1 word2]" to nothing.
I tried
sed -i -e 's/[Word1 Word2]//g'
It didn't work and replaced entire my text in disorder way.
I would like to request you to help me to replace special characters like these.
Thanking you, Punith.
sed -e 's/\[Word1 Word2\]//g'