actually, no, the -n is just to suppress the repeating of the pattern
match... the '>' re-directs standard out to your file.

the /,/ is a regular expression that looks for and matches commas, so in
other words, the column headers and blank lines generated by the command
DB2 processor, are suppressed and only the selected data, with the
imbedded commas are printed ... the p after the regular expression. The
forward slashes are just the regular expression delimiters.

On Tue, 2006-11-21 at 11:47 +1100, Mike Pantzopoulos - (H/O) wrote:


I understand that SED -n suppresses the input from being directed to
standard output, however, could someone please explain the meaning of
the '/,/p'  in the above command please.



This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you are not the intended recipient, any use, disclosure or copying of this 
message is unauthorised. If you have received this message in error, please 
reply using the sender's email address. 

This footnote confirms that this email message has been scanned for computer 
viruses. EIG-Ansvar Limited does not accept liability for any loss or damage, 
whether caused by our own negligence or not, that results from a computer 
virus or defect in the transmission of this email or any attached file. 

EIG-Ansvar Limited - Australia (A.B.N. 21 007 216 506)
Email : insure@xxxxxxxxxxxxxxxx

Eig-Ansvar Limited - New Zealand
Email : insure@xxxxxxxxxxxxxxxx


This thread ...


Return to Archive home page | Return to MIDRANGE.COM home page