Här är koden för scriptet:
#!/bin/bash
echo ""
echo ""
echo
echo "Välj vilken sida du börja dagen på"
echo "1 -> Flashback"
echo "2 -> Aftonbladet"
echo "3 -> UbuntuSE"
echo "4 -> blank"
echo "5 -> google"
read swiftfox
if [ "$swiftfox" = "1" ]; then
/opt/swiftfox/swiftfox <a class="postlink" href="http://www.flashback.se">http://www.flashback.se</a>
elif [ "$swiftfox" = "2" ]; then
/opt/swiftfox/swiftfox <a class="postlink" href="http://www.aftonbladet.se">http://www.aftonbladet.se</a>
elif [ "$swiftfox" = "3" ]; then
/opt/swiftfox/swiftfox http://ubuntu-se.org/forum/
elif [ "$swiftfox" = "4" ]; then
/opt/swiftfox/swiftfox about:blank
elif [ "$swiftfox" = "5" ]; then
/opt/swiftfox/swiftfox <a class="postlink" href="http://www.google.se">http://www.google.se</a>
exit
fi
Tack på förhand.
