in reply to Re^3: How to know if two files (.c,.h,.cpp) are different content-wise ignoring the comments?
in thread How to know if two files (.c,.h,.cpp) are different content-wise ignoring the comments?
I am trying to use diff tool but use the -I option to ignore lines that start with "File Name:".i am using the below regular expression,there is no syntax error but the diff tool still shows changes with line that starts with "File Name:".Any idea what is going wrong?
diff -I '[^\s*File\sName:]' file1 file2
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How to know if two files (.c,.h,.cpp) are different content-wise ignoring the comments?
by roboticus (Chancellor) on Feb 13, 2011 at 13:25 UTC | |
|
Re^5: How to know if two files (.c,.h,.cpp) are different content-wise ignoring the comments?
by Corion (Patriarch) on Feb 13, 2011 at 08:49 UTC |