I tried this:
cat test.txt | awk ' NR == 1 || NR == 9 {print }' # 1 and 9 are the column
<td>231.7 kb/s (9.7%)</td>
<td>16.8 kb/s (0.7%) </td>
It works. The limitation here is how to get rid of <td> and show only 231.7
kb/s and 16.8 kb/s?
If only there is a space after the > , there could be no problem since awk/cut
can remove this but since not all has no space, is there another way to remove
them?
----- Original Message ----
From: joebert jacaba <[EMAIL PROTECTED]>
To: Philippine Linux Users' Group (PLUG) Technical Discussion List
<[email protected]>
Sent: Thursday, November 15, 2007 1:56:27 PM
Subject: Re: [plug] how to get traffic every 5 mins.
i=1
for j in `tail /usr/share/dict/words`
do
if [ $((i % 3)) -eq 0 ]
then
echo $j
fi
i=$(($i + 1))
done
_________________________________________________
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
____________________________________________________
Bond or Bourne. Who's the real lady-killer?
Be a better groupie
Find out at Yahoo! Answers - http://ph.answers.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