[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Узнать белый IP



On Sat, Mar 14, 2009 at 04:16:59PM +0600, Vasily Ivanov wrote:
> On 14.03.09 1553 (+0600), Mikhail Gusarov wrote:
> > 
> > Twas brillig at 15:41:32 14.03.2009 UTC+06 when caesar@academ.org did gyre and gimble:
> > 
> > 
> >  VI> wget -q http://myip.ru -O - | grep -E "([0-9]{1,3}\.){3}[0-9]{1,3}" | sed 's/[^0-9\.]//g'
> > 
> >      wget -q http://myip.ru -O- | perl -ne 'print $1 if /(([0-9]{1,3}\.){3}[0-9]{1,3})/'
> Хотя.. wget -q http://myip.ru -O- | grep -oE "([0-9]{1,3}\.){3}[0-9]{1,3}"
> 
> =)
> 
echo "aaa 92.140.190.222 bbb 999.999.999.999" | grep -oE
"([0-9]{1,3}\.){3}[0-9]{1,3}"

это не ip ... :)

-- 
С уважением,
П.Миронов


Reply to: