unless of course you have ipv6 enabled:
[EMAIL PROTECTED] nick $ echo ${SSH_CLIENT/ */}
::ffff:203.79.82.53
[EMAIL PROTECTED] nick $
now probably not many people do, but it may also be worth taking into
account or a script may suddenly break.
On Mon, 21 Jun 2004 10:50:56 +1200
Jim Cheetham <[EMAIL PROTECTED]> wrote:
> Matthew Gregan wrote:
> > $ echo ${SSH_CLIENT/ */}
> > 172.16.0.1
>
> Man, that takes all the fun out of bash and pipelines ... :-)
> But it looks like a nice bash parameter expansion - I don't recognise
> it. Where in the man page is it explained? It seems to be a general
> regexp substitution, which would be faster than a call to sed within a
> pipeline ...
>
> -jim
--
Nick Rout <[EMAIL PROTECTED]>