Last active
October 12, 2020 11:43
-
-
Save richardmoe/3cc555c903451babee27f770dc2cf4a2 to your computer and use it in GitHub Desktop.
Linuxkurs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Installer applikasjonen cowsay og print ut en liten hilsen | |
set -e | |
if [ ! -x /usr/bin/cowsay ]; then | |
echo "Please install the cowsay command (hint use 'apt get install')"; | |
exit 0; | |
fi | |
echo "Halloo Linux" > linx.txt | |
move linx.txt linux.txt | |
cowsay < linux.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment