Michael G Schwern <[EMAIL PROTECTED]> wrote:

> Schuyler's got it down to:
> 
> perl -ne
> '(/^\\s*[^#]|^\\s*#\\s*(include|define|(ifn?|un)def|else|elif|endif)/)&&print'

That leaves comment lines when there's whitespace before the #.
And why the parens around the regex?

-- 
Keith C. Ivey <[EMAIL PROTECTED]>
Washington, DC

Reply via email to