Skip to content

Instantly share code, notes, and snippets.

@richardmoe
Last active October 12, 2020 11:43
Show Gist options
  • Save richardmoe/3cc555c903451babee27f770dc2cf4a2 to your computer and use it in GitHub Desktop.
Save richardmoe/3cc555c903451babee27f770dc2cf4a2 to your computer and use it in GitHub Desktop.
Linuxkurs
#!/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