Bash Scripting - User Input
What will be the output of this script if run as
./script.sh apple banana cherry?
echo $1 shift echo $1
./script.sh apple banana cherry?
echo $1 shift echo $1
shift, $1 becomes the second argument: 'banana'.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions