Re: vmstat output to db

  • From: Jared.Still@xxxxxxxxxxx
  • To: oracle-l@xxxxxxxxxxxxx
  • Date: Wed, 28 Jul 2004 15:51:57 -0700

> cat /tmp/msg$$|sed 1,3d | awk  '{ printf("%s %s %s %s %s %s %s\n", $1, 
$8,
> $9, $12, $20, $21, $22) }' | while read RUNQUE PAGE_IN PAGE_OUT SR

almost forgot.

You don't need 'cat' in that line.

Google for 'useless use of cat'. ;)

Just use awk directly.

awk < file
awk file


Also, the vmstat header lines repeat, so the 'sed' command will
only remove the first instance of them.

Jared


----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request@xxxxxxxxxxxxx
put 'unsubscribe' in the subject line.
--
Archives are at //www.freelists.org/archives/oracle-l/
FAQ is at //www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------

Other related posts: