My favorite way is to use a keyword on the beginning of each output line and then either use grep, read, or a string match in perl to only pick the lines that have the goodies.
The following select is an example: Select 'keyout', node_name, filespace_name, capacity, pct_util from filespaces Generates all the garbage and output lines like this. keyout N07139 \\n07139\c$ 28.2 Paul D. Seay, Jr. Technical Specialist Naptheon Inc. 757-688-8180 -----Original Message----- From: Mark Stapleton [mailto:stapleto@;BERBEE.COM] Sent: Tuesday, October 22, 2002 12:07 PM To: [EMAIL PROTECTED] Subject: Re: dismiss dsmadmc header output From: ADSM: Dist Stor Manager [mailto:ADSM-L@;VM.MARIST.EDU]On Behalf Of Michael Kindermann > Is there a way, something like a switch or an option, to influence the > dsmadmc-output, to give only the interesting result and no overhead ? > > Trying to scripting some task in a shell-script. And iam a little > anoyed, becaus it not very difficult to get some output from the > dsmserver. But it is to reuse the information in the script. "Lo, and the great god UNIX made grep, and it was good. And grep begat awk, and sed. And sed lived 376 years, and begat Perl, and Python. And it was good and there was joy in all the land." -- Mark Stapleton ([EMAIL PROTECTED]) Certified TSM consultant Certified AIX system engineer MCSE
