and as soon as I pressed send I realised that
will turn lines that don't have a matching pair of brackets into blanks,
On Mon, Sep 10, 2001 at 11:57:25AM +0100, Fergal Daly wrote:
> sed 's/.*(\(.*\)).*/\1/'
>> will extract stuff from inside brackets but it'll leave lines with no
> brackets untouched
>> On Mon, Sep 10, 2001 at 11:40:09AM +0100, Patton, Tony wrote:
> > I am trying to get the ip address of a user that has logged in via
> > telnet.
> > I can get this information from the 'who -M' command, which gives me the
> > following :
> > xxxxxxx ttyqb Sep 10 11:33
> > (xxx.xxx.xxx.xxx)
> > what i want is to get the ip address from within the brackets.
> > any solutions?
> > using Compaq Tru64 btw.
> > --
> > Irish Linux Users' Group: ilug at linux.ie> > http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> > List maintainer: listmaster at linux.ie>> --
> Irish Linux Users' Group: ilug at linux.ie>http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at linux.ie
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!