try this pipe the file to nl numbers each line then grep for starts with line number ^3<td>
that may work.. On Thursday 15 November 2007 12:54:06 pm Nelson Serafica wrote: > Is there anyone knows how to grep certain row (like ROW3 and ROW6 only)? > > awk can print certain column, is there a binary that can print certain > rows? Like the ff, when I do "cat 202.84.22.161_5.html | egrep > "kb/s|b/s" it shows the ff. How can I print ROW3 and ROW6 only? > > > > Anyone suggest > > > > <td>231.7 kb/s (9.7%)</td> > > <td>25.0 kb/s (1.0%) </td> > > <td>21.7 kb/s (0.9%) </td> --> ROW3 > > <td>180.1 kb/s (7.5%) </td> > > <td>6160.0 b/s (0.3%) </td> > > <td>7768.0 b/s (0.3%) </td> --> ROW 6 > > <td>241.8 kb/s (10.1%)</td> > > <td>9952.0 b/s (0.4%) </td> > > ----- Original Message ---- > From: Nelson Serafica <[EMAIL PROTECTED]> > To: Philippine Linux Users' Group (PLUG) Technical Discussion List > <[email protected]> Sent: Thursday, November 15, 2007 12:24:11 PM > Subject: Re: [plug] how to get traffic every 5 mins. > > @ Rebs > > Does Cacti create a log file for its gathered data? I once installed cacti > but used mrtg due to its ease of use. > > @Michael Cole > > I'll check ntop. > > Anyone used iptraf? > > > > ----- Original Message ---- > From: Rebs Guarina <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Sent: Thursday, November 15, 2007 10:53:30 AM > Subject: Re: [plug] how to get traffic every 5 mins. > > Cacti works as well,bro... > > On 11/15/07, Nelson Serafica <[EMAIL PROTECTED]> wrote: > > I used mrtg to monitor > > my catalysts's traffic. Do you know any > applications > > > that instead of graph, it will dump > > the traffic's value to a certain file? I need to monitor the server's > > traffic but in a way like this: > > > > 8:00 - 100 Kbps > > 8:05 - 103 Kbps > > 8:10 - 200 Kbps > > 8:15 - 120 Kbps > > etc., > > > > Is there an application that can dump those traffic to a text file or > > atleast I can view it in a number value so that I can > > paste it to a notepad? mrtg don't restore any copy of result of its > > traffic. > > > I need to to generate traffic of the server every month. > > > > Anyone can suggets? > > > > > > -- > > > > Linux Noob > > > > > > > > > > > > > > ____________________________________________________ > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://ph.mail.yahoo.com _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists Searchable Archives: http://archives.free.net.ph

