Bash Scripting - Text Processing in Scripts
This script is intended to replace all occurrences of 'cat' with 'dog' in a file named
pets.txt. What is wrong?sed 's/cat/dog/g pets.txt'
pets.txt. What is wrong?sed 's/cat/dog/g pets.txt'
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions