Skip to content

Instantly share code, notes, and snippets.

@meganlkm
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meganlkm/7535f902c0b9512526a8 to your computer and use it in GitHub Desktop.
Save meganlkm/7535f902c0b9512526a8 to your computer and use it in GitHub Desktop.
# get external ip
wget -q -O - checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
# javafy regex
echo '/^\d{5}\\(?:[-\s]\d{4})?$/' | sed 's/\\/\\\\/g'
# loop to make dirs
for i in {1..5}; do mkdir unit$i; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment