I wrote a
shell script that uses
tr commands to generate a file. My shell script looks like
#!/bin/bash printf "generating random file > plaintext \n" cat -v | tr "a-z" "b-y" < plaintext > generatedtext
On executing the script, it doesn't terminate the
cat command and when I've
Z to stop the shell script execution. Now, when I look into the contents of the
generatedtext - the first character is altered(based on
tr) and the rest of the characters are all one and the same as in the plaintext.
For example, if the contents of
This is an apple.
After shell execution, the contents of
xhis is an apple.