- How many comments are in the following code?
#!/bin/bash
# Welcome to shell scripting
# Author: Mokhtar
- If we have the following code:
#!/bin/bash
echo $1
echo $2
echo $3
And we run the script with these options:
$ ./script1.sh -a -b50 -c
What is the result of running this code?
- Check the following code:
#!/bin/bash
shift
echo $#
If we run it with these options:
$ ./script1.sh Mokhtar -n -a 35 -p
-
- What is the result?
- What is the dropped parameter?