Skip to content

Instantly share code, notes, and snippets.

@NeoTheFox NeoTheFox/
Last active Feb 14, 2018

What would you like to do?
#This is a simple calc for looking glass
#Licenced by WTFPL
#by NeoTheFox 2018
#USAGE: WidthxHeight
function printhelp
echo "Usage:"
echo " widthxheight"
echo "Example:"
echo " 800x600"
if [ -z $1 ]
echo "No arguments provided"
exit 0
WIDTH=$(echo $1 | cut -d "x" -f1)
HEIGHT=$(echo $1 | cut -d "x" -f2)
echo "$M"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.