Skip to content

Instantly share code, notes, and snippets.

View scottsummers's full-sized avatar

Scott Summers scottsummers

  • Cloudera, Inc.
  • North Carolina, USA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am scottsummers on github.
  • I am mscottsummers (https://keybase.io/mscottsummers) on keybase.
  • I have a public key ASAnUu5aq5mZvgzkSlytfXUF5AyOhyWQAhO7dF7Cb_ycVAo

To claim this, I am signing this object:

#!/bin/bash
function jsonval {
temp=`echo $json | sed 's/\\\\\//\//g' | sed 's/[{}]//g' | awk -v k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' | sed 's/\"\:\"/\|/g' | sed 's/[\,]/ /g' | sed 's/\"//g' | grep -w $prop`
echo ${temp##*|}
}
json=`curl -s -X GET http://twitter.com/users/show/$1.json`
prop='profile_image_url'
picurl=`jsonval`