Skip to content

Instantly share code, notes, and snippets.

@mcgrew
Created July 7, 2010 18:20
Show Gist options
  • Save mcgrew/467047 to your computer and use it in GitHub Desktop.
Save mcgrew/467047 to your computer and use it in GitHub Desktop.
Bash script for phone number reverse lookup
#!/bin/bash
curl -Ls http://www.phonelookup.com/1/$1 \
grep -e "h[14]" | \
head -n4 | \
sed -e "s/^\s*//" -e "s/\s*$//" -e "s/<[^>]*>//g" -e "s/^.*:\s//"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment