On Sat, Oct 24, 2009 at 9:39 AM, jeffs <jsonst...@gmail.com> wrote:
> I have noticed a fair amount of chatter around the Web about
> converting userName to userID, and there is quick-hack code at the
> bottom of that page of examples (as part of the "addmember"  and
> "rmmember" scripts). If it is useful, feel free to use it (all my
> stuff is CC licensed). If you have improvements to suggest, that would
> be great (and with your permission I will gladly fold it into my
> example scripts & of course give attribution).

Hi, i tested with awk instead of sed, does the same but less code :)

    curl --silent -u $USERNAME:$PASSWORD http://twitter.com/users/show/$1.xml \
    | grep '<id>' | head -1 | awk -F'</?id>' '{ print $2 }'
) #


ø Rolando Espinoza La fuente

Reply via email to