more of a shell / awk question

From: fixx (fixx_at_*NoSpam*.fixx.co.za)
Date: 04/26/04


Date: Mon, 26 Apr 2004 10:05:32 +0200

Helo everyone

Is it possible to use awk to cut lines?
I got a little shell script running through inetd, this is what it
outputs:

Trying 10.0.5.10...
Connected to 10.0.5.10.
Escape character is '^]'.
9853
4840
0
0
Connection closed by foreign host.

i only want the 4 lines with the values of 98... to the last 0 to be
echo'd, i.o.w:
9853
4840
0
0

is it possible using awk?

Thanks in advance
fixx

-- 
In a world with no boundaries, Who Needs Gates?


Relevant Pages

  • Root .profile $PS prompts showing for all telnet connections from all users ?
    ... Following wrong method when restarting inetd (seems ... The server I am working on is a V880 with Solaris 8 and recent patching. ... My main problem is when -ANY- user logs-in to my Solaris 8 server over telnet, ... I do not see this problem using any other remote connection utility like ...
    (SunManagers)
  • Re: Identify what is using a port
    ... It makes perfect sense if you look at the expected number of connection ... then the inetd superserver is the right solution. ... can do all sorts of funky stuff with balancing multiple requests over ... consent and may be a violation of international copyright law. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: need a linux script
    ... what Jan's saying is that the problem is definitely with inetd; ... In the old days, before inetd, each port that accepted incoming ... but each daemon had to run just in case somebody tried to ... entries in /etc/inetd.conf), starts it, and passes the connection on. ...
    (alt.os.linux.suse)
  • Re: lp message
    ... I erroneously assumed that you wouldn't use an IPv6 socket unless you were ... >program will be making to get information about the connection. ... you need inetd to ... Dr. Stuart A. Weinstein ...
    (comp.unix.solaris)
  • Re: AUTH and sendmail
    ... > connection comes into access control database. ... > Qpopper 4.X has DRAC support, ... And the question about ip was not about access control but about general inetd ... I mean in which way inetd gives ip to daemon. ...
    (FreeBSD-Security)