Professional Documents
Culture Documents
07 eLMS Activity 1 - ARG: I. Output Tracing (4 Items X 5 Points)
07 eLMS Activity 1 - ARG: I. Output Tracing (4 Items X 5 Points)
1. Output:
#!/bin/sh
# This is a comment!
echo “Aim high, STI!”
echo “This is a comment!”
echo This is a comment
2. Output:
#!/bin/sh
word1=Hello
word2=How
word3=you
word4=are
echo “$word2 $word4
$word2? $word1?!?”
3. Output:
#!/bin/sh
Name1=John
echo “Who are you?”
Name2=Michael
echo “Nice to meet you
$Name1”
4. Output:
#!/bin/sh
aa=4
ab=5
ac=6
let “aa = aa + ac”
echo “The first operation
is equal to $aa”
let “ac = ac - ab”
echo “The second
operation is equal to $ac”