Is there an example of if you want to replace multi-words with one word
for example input: dog apple orange banana pear output dog cat cat banana cat
I have solved with this below is there is a better way(better than sed)? by not typing cat three times:
sed -e 's/apple/cat/g;s/orange/cat/g;s/pear/cat/g'
thanks in advance