[Orca-users] How to exclude filesystems?

Duncan Lawie duncan.lawie at betfair.com
Thu Jan 27 05:58:33 PST 2005


I've never seen a version of orca that could handle changes in column
count - though there was talk of it back in late 1999.

	-----Original Message-----
	From: orca-users-bounces+tyger=hoopoes.com at orcaware.com
[mailto:orca-users-bounces+tyger=hoopoes.com at orcaware.com] On Behalf Of
David Michaels
	Sent: 26 January 2005 23:33
	To: Dmitry Berezin
	Cc: orca-users at orcaware.com
	Subject: Re: [Orca-users] How to exclude filesystems?
	
	
	Dmitry Berezin wrote: 

		Actually no. The number of columns is always the same
within one data file. If it changes, orcallator will start a new data
file. AFAIK, orca can not handle format changes within one data file.
Also, something like


	Oh?  I could swear I've seen some data files with multiple
header lines in them.  So, every time I mount a new filesystem, or
unmount an old one, orca creates a whole new datafile with a new header?
*looks at his data directory*  Oh, look at that.  9 data files on
Monday.  Hmm.  Was there ever a point where Orca supported column
changes mid-stream?
	
	

		 

		head -1 data_file | gawk '{for (i=1;i<NF; i++) if
($i~"vxckpt|checkp|verita") print i, $i}' 

		 

		will give you the column numbers that you want to
exclude. Or this

		 

		gawk '{for (i=1;i<NF;i++) {if (NR==1 &&
$i~"vxckpt|checkp|verita") np[i]=1; if (np[i]!=1) printf $i" "};print
""}' data_file > new_data_file

		 

		will create a new data file without the columns that you
don't want.


	Indeed, if the columns don't change for a particular file, the
gawk becomes almost trivial. :)  Thanks for the feedback -- the perl
regexp did the trick for future datafiles, and it sounds like the data
file cleaning will be easier than I first thought.
	
	Cheers!
	--Dragon
	
	
	
	-- 
	

	  	
	

	David P. Michaels

Senior Multi-Disciplined Engineer II W.H.
NPOESS IS
Platform OS Unix
303.344.6840
720.858.5952 fax
720.521.0561 pager

dragon at raytheon.com aka "Dragon" 
"I wonder what news is doing..."

 news at newshost <29> ps -fu news      
 news 18624 12367 2 0:00 makehistory 

"News is making history."
      

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/orca-users/attachments/20050127/1c2679fe/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Raytheon.gif
Type: image/gif
Size: 481 bytes
Desc: Raytheon.gif
URL: </pipermail/orca-users/attachments/20050127/1c2679fe/attachment.gif>


More information about the Orca-users mailing list