Zhang Weiwu wrote:
[EMAIL PROTECTED]:/tmp$ diff -I "^[[:space:]]*/[*].*[*]/[[:space:]]*$" 
header.inc.php empty
1,2d0
< <?php
<       /* $Id: header.inc.php.template,v 1.58 2005/07/08 05:00:14 milosch Exp 
$ */

in man it's being said, -I RE --ignore-matching-lines=RE
              Ignore changes whose lines all match RE.

I read man grep and it seems there are two sets of RE, extended and basic. But 
it's not mensioned in diff(1) wheather or not diff(1) takes extended or basic 
RE. I am using Debian so it should be gnu diff.

If it's not mentioned, it possibly uses basic regular expressions.

try:

$ diff -I '/\* \$Id.*\$ \*/' header.inc.php empty

Christoph
--
echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" [EMAIL PROTECTED]
--
gentoo-user@gentoo.org mailing list

Reply via email to