Re: reading a file [OT]
- From: Andrew Poelstra <apoelstra@xxxxxxxxxx>
- Date: Thu, 28 Sep 2006 13:39:00 GMT
On Thu, 2006-28-09 at 01:12 -0700, robannexs@xxxxxxxxx wrote:
hi all..
i've got a file of the following format
10000000 records in
10000000 records out
5120000000 bytes (5.1 GB) copied, 628.835 seconds, 8.1 MB/s
how am i suppose to get the parameter 8.1MB/s on the third line?
<OT>
Do you need to use C for this? A quick awk script would work
perfectly:
awk -F"," {'print $3;'}
--
Andrew Poelstra <http://www.wpsoftware.net/projects/>
.
- References:
- reading a file
- From: robannexs
- reading a file
- Prev by Date: Re: Safely working out how many rows in an array?
- Next by Date: Re: reading a file
- Previous by thread: Re: reading a file
- Next by thread: Re: reading a file
- Index(es):