Before executing the shell scripts, you need to grant them execution permissions. You can do this using the following command:
chmod +x caesar
chmod +x breakcaesar
This command will grant execution permissions to the caesar
and breakcaesar
shell scripts.
Once you have granted execution permissions to the shell scripts, follow these steps to execute them:
a. Open a terminal. b. Navigate to the directory where the shell scripts are located. c. To execute the Caesar script, use the following command:
./caesar
./caesar 23 'THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG'
echo 'THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG' | ./caesar 23
d. To execute the BreakCaesar script, use the following command:
./breakcaesar
./breakcaesar 23 'QEB NRFZH YOLTK CLU GRJMP LSBO QEB IXWV ALD'
echo 'QEB NRFZH YOLTK CLU GRJMP LSBO QEB IXWV ALD' | ./breakcaesar