13,420
edits
Changes
→LINUX PRACTICE QUESTIONS
:ROUGH WORK:
:OUTPUT:
<br><br>
:'''Walkthru #3:'''
:'''cat walkthru2.bash'''
<pre>
#!/usr/bin/bash
for x in 1 2 3 4 5
do
if [ $((x % 2)) -eq 0 ]
then
echo "this"
else
echo "that"
fi
done
</pre>
:WRITE ROUGH WORK AND OUTPUT FROM ISSUING:
:'''./walkthru3.bash apple orange banana'''
:ROUGH WORK:
:OUTPUT:
[[Category:ULI101]]