help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

diff and ignore regex


From: Nadim Shaikli
Subject: diff and ignore regex
Date: Wed, 22 Dec 2004 22:10:50 -0800 (PST)

I'm curious if it's possible to add an option to 'diff' so that certain
regular expression strings (and characters) can be ignored.  So something
akin to,

 $ diff --ignore_regex "one | two | three" file1.txt file2.txt

So whenever "one" or "two" or "three" is seen it would be ignored (think
of it as a more general extension of the '--ignore-space-change' option)
or maybe allow perl to grok the text to determine the regex or...  This
would come in _very_ handy for more complex languages where diacritics
are used which in some instances ought not trigger a 'difference' and so
it seems logical to give the user the option to ignore certain characters
and combinations there-of.  This would also be nice for cases where you
know two documents differ in certain strings/characters yet you want to
see if there are any other changes.

Thoughts/comments ?

Regards,

 - Nadim


                
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250




reply via email to

[Prev in Thread] Current Thread [Next in Thread]