1.
What output will the following command sequence produce?
echo '1 2 3 4 5 6' | while read a b c; do
echo result: $c $b $a;
done
2.
When the command echo $ outputs 1, which of the following statements is true?
3.
Which command makes the shell variable named VARIABLE visible to subshells?
4.
What output will the command seq 10 produce?
5.
After issuing:
function myfunction { echo $1 $2 ; }
in Bash, which output does:
myfunction A B C
Produce?
6.
Which of the following commands puts the output of the command date into the shell variable mydate?
7.
What is the difference between the commands test -e path and test -f path?
8.
How can the existing environment variable FOOBAR be suppressed for the execution of the script./myscript only?
9.
When the command echo $$ outputs 12942, what is the meaning of 12942?
10.
What output will the following command produce? seq 1 5 20