Börjat på labb 3

This commit is contained in:
2013-12-11 11:26:55 +01:00
parent 23e0688d00
commit 1601468251
4 changed files with 42 additions and 0 deletions

15
Labb3/ge_le_strings.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
# Jack-Benny Persson
# LX13
Str1="Kalle" # K = 75
Str2="Lisa" # L = 76
if [ "$Str1" < "$Str2" ]; then
echo "$Str1 är mindre än $Str2" # Eftersom 75 är mindre än 76
elif [ "$Str1" > "$Str2" ]; then
echo "$Str1 är större än $Str2" # Kommer vara falskt, se ovan
fi
exit 0