Bash Scripting - User Input
What will be the output of this script if the user inputs:
apple banana cherry date?
read a b c echo "$a" echo "$b" echo "$c"
apple banana cherry date?
read a b c echo "$a" echo "$b" echo "$c"
a and b get the first two words: "apple" and "banana".c gets all remaining words combined: "cherry date".15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions