Replace Each Word "china" with "India" In A Given File

Write A Shell Script To Replace Each Word "china" with "India" In A Given File Shell Script: clear echo "before replacing the file is" cat a1.txt sed 's/china/india/' a1.txt > a2.txt echo "after replacing the file is" cat a2.txt OUTPUT: [admin@localhost indiachina]$ sh indiachina.sh before replacing the file is china is good china is best after replacing the file is india is good india is best

Share:

0 comments