Gjort övning 3, script 2 till labb 4 och ett The Shining script

This commit is contained in:
2013-12-13 15:46:44 +01:00
parent 6306cbb6fc
commit 9283ee5940
2 changed files with 43 additions and 0 deletions

View File

@@ -4,5 +4,19 @@
# LX13
# Övning 3, script 2, labb4
# Testing parameter substiution
Arg1="$1"
echo "Hej ${USER}@${HOSTNAME}"
echo ""
echo "Variabler på U: ${!U*}"
echo "Variabler på S: ${!S*}"
echo ""
echo ${Arg1:?"No arg1 input"}
echo "Du skrev in ${#Arg1} tecken som argument till $0"
exit 0