Skip to content

Instantly share code, notes, and snippets.

@xntrik
Created June 28, 2012 13:40
Show Gist options
  • Save xntrik/3011447 to your computer and use it in GitHub Desktop.
Save xntrik/3011447 to your computer and use it in GitHub Desktop.
cat content | ./fuckppt.sh | more
font="standard"
while read line
do
if [ "${line:0:2}" = "# " ]
then
font=`echo $line | awk '{print $2 }'`
else
missing=`echo $line | figlet -f $font | wc -l`
oneither=`echo $[24-missing]/2 | bc`
for (( c=1; c<=$oneither; c++ ))
do
echo
done
echo $line | figlet -f $font -c
if [ $[missing % 2] -ne 0 ]
then
test=1
else
let "oneither -= 1"
fi
for (( c=1; c<=$oneither; c++ ))
do
echo
done
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment