I think this is what you need:

pfmon | awk > outfile (if awk doesn't automatically dump to a specific
file)

| is pipe, > is output redirection to a file. >> will append output to a
file, not overwrite.

Hope this helps.

> -----Original Message-----
> From: tclug-list-bounces at mn-linux.org 
> [mailto:tclug-list-bounces at mn-linux.org] On Behalf Of 
> Sreekumar Kodakara
> Sent: Monday, February 02, 2004 10:52 AM
> To: tclug-list at mn-linux.org
> Subject: [TCLUG] Redirecting output of a command to pipe
> 
> 
> Hi,
> 
> I have a command (pfmon in IA64 system) which takes filename 
> as a parameter. It samples the counters present in the 
> processor at a given sampling rate and stores it into the 
> file. This command stores lot more data than what I want. 
> Since it stores it in column format, I can write a small awk 
> script to parse the file to get the data which I want. The 
> problem is that the raw file which I get from pfmon is just 
> too big ( about 100 GB or so) and hence I run out of disk 
> space before I can process it with my awk script.
> 
> My question is there a special file in linux ( The system
> is RH with kernel version linux-2.4.18-e.25, I dont know the 
> RH version number), which I can specify in the command line 
> of pfmon and which I can read simultaneously with a pipe or 
> something so that I can process the data as and when it generates?
> 
> 
> Thanks for the help.
> 
> Sreekumar
> 
> _______________________________________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota 
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list


_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list