Try:
sed -e 's/<td>//' -e 's/ (.*//'
Rob
On 11 15, 07, at 2:33 PM, Nelson Serafica wrote:
> 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
>
>
> Basic black. Runway ready, or just run-of-the-mill?
> Be a better fashionista
> Find out at Yahoo! Answers _________________________________________________
> 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
_________________________________________________
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