Question: What does the screen display if you execute the following script and enter 2 ? # ! / bin / bash echo - n Enter

What does the screen display if you execute the following script and enter 2?
#!/bin/bash
echo -n "Enter a number between 1 and 3"
read number_in
case $ number_in in
1) echo "One is the loneliest number."
;;
2) echo "Two is the loneliest number since the number one."
;;
3) echo "Three's a crowd."
;;
*) echo "You did not enter a number"
echo "between 1 and 3."
esac
You did not enter a number
Three's a crowd.
Two is the loneliest number since the number one.
One is the loneliest number.
ls >! Charlie_file
Writes the output of the ls command into Charlie_file, even if it exists and contains data, but only if noglob is set
ls commands
Writes the output of the ls command into Charlie_file, only if it exists and contains data, and noclobber is not set
Writes the output of the ls command into Charlie_file, even if it exists and contains data, and noclobber is set

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!