I'm getting nowhere trying to parse out IP addresses from strings of
this form in /bin/sh, which have been awk'd out of 'tail named.run':
addr='195.68.176.4#1440:'
addr='195.68.176.4#16811:'
addr='195.68.176.4#276:'
sh(1) in hand, I've tried:
ip=${addr:%#*}
ip=${addr:%%#*}
Quoting Ian Smith smi...@nimnet.asn.au:
I'm getting nowhere trying to parse out IP addresses from strings of
this form in /bin/sh, which have been awk'd out of 'tail named.run':
addr='195.68.176.4#1440:'
addr='195.68.176.4#16811:'
addr='195.68.176.4#276:'
sh(1) in hand, I've tried:
On Wed, 11 Feb 2009 21:47:17 +1100 (EST), Ian Smith smi...@nimnet.asn.au
wrote:
I'm getting nowhere trying to parse out IP addresses from strings of
this form in /bin/sh, which have been awk'd out of 'tail named.run':
addr='195.68.176.4#1440:'
addr='195.68.176.4#16811:'
On Wednesday 11 February 2009 12:47:17 Ian Smith wrote:
I'm getting nowhere trying to parse out IP addresses from strings of
this form in /bin/sh, which have been awk'd out of 'tail named.run':
addr='195.68.176.4#1440:'
addr='195.68.176.4#16811:'
addr='195.68.176.4#276:'
sh(1) in hand,
On Wed, 11 Feb 2009, Giorgos Keramidas wrote:
On Wed, 11 Feb 2009 21:47:17 +1100 (EST), Ian Smith smi...@nimnet.asn.au
wrote:
I'm getting nowhere trying to parse out IP addresses from strings of
this form in /bin/sh, which have been awk'd out of 'tail named.run':
Thanks Ed - good old sed - and Jonathan too, now the digest's here.
195.68.176.4
Lest anyone get the wrong idea: that's a victim, perpetrator unknown.
cheers, Ian
___
freebsd-questions@freebsd.org mailing list