ls
initially displays:fructose.dat glucose.dat sucrose.dat
What is the output of:
for datafile in *.dat
do
ls *.dat
done
for sugar in *.dat
do
echo $sugar
cat $sugar > xylose.dat
done
None of the above.
expr
does very simple arithmetic using command-line parameters:$ expr 3 + 5
8
$ expr 30 / 5 - 2
4
Given this, what is the output of:
for left in 2 3
do
for right in $left
do
expr $left + $right
done
done
expr
? Can you escape the *
so that it works as expected?