Gjort övning 3, script 2 till labb 4 och ett The Shining script
This commit is contained in:
1 parent
6306cbb6fc
commit
9283ee5940
2 files changed
+43
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user