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

17
Labb3/compare.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
# Jack-Benny Persson
# LX13
read -p "Skriv något: " Str1
read -p "SKriv något: " Str2
if [ "$Str1" = "$Str2" ]; then
echo "$Str1 är lika med $Str2"
elif [ "$Str1" != "$Str2" ]; then
echo "$Str1 är inte samma som $Str2"
fi
exit 0