I have this script on my system:
caterpillar
cat
lol
morecat
When I run it, I get the output as expected
caterpillar
cat
morecat
But, if I use tr instead, with a script
caterpillar
cat
lol
morecat
I expect to receive
ceterpiller
cet
lol
morecet
But instead, nothing is printed, and if I manually type cat, I get c/t. How can I modify a script to behave like the first?
source
share