Skip to content

Instantly share code, notes, and snippets.

@fenollp
Created March 31, 2016 09:19
Show Gist options
  • Save fenollp/23c4bf3818ee23995613de299d785897 to your computer and use it in GitHub Desktop.
Save fenollp/23c4bf3818ee23995613de299d785897 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
url='http://hands.wtf/build/bundle.js'
matches=$(curl $url -s | grep -Eo ',([a-z0-9]{3}):' | sed 's/,//;s/://' | sort -u)
to_exclude='102 110 114 116 add arc map max min oss pan poo end fap fps get red set six src sub tan tos uas url uv2 dot fog'
exclude=''
for word in $to_exclude; do
exclude="$exclude;s/$word//"
done
words=$(echo $matches | sed $exclude)
printf "%14s %14s %14s %14s %14s\n" $words
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment