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
In reply to Re^4: How to know if two files (.c,.h,.cpp) are different content-wise ignoring the comments?
by iphone
in thread How to know if two files (.c,.h,.cpp) are different content-wise ignoring the comments?
by iphone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |