Look the following Bash code and determine what should be in the gap (_________)? function perform_crypto_operation() { crypto_mode=$1 input_file=$2 output_file=$3 (_______)$crypto_mode in "-e"|"encrypt") perform_encryption $input_file $output_file ;; "-d"|"decrypt") perform_decryption $input_file $output_file
Look the following Bash code and determine what should be in the gap (_________)?
function perform_crypto_operation() {
crypto_mode=$1
input_file=$2
output_file=$3
(_______)$crypto_mode in
"-e"|"encrypt")
perform_encryption $input_file $output_file
;;
"-d"|"decrypt")
perform_decryption $input_file $output_file
;;
*) # executes when mode is neither "encrypt" or "decrypt"
echo "Invalid Mode"
;;
esac
}

Here we write in simple words to fill this gap.
========================
In base file we fill $input_file.
Explanation below:
Trending now
This is a popular solution!
Step by step
Solved in 2 steps









