Hello Guys,
I request anyone to do me a small help in using diff command for following.
I am trying to compare two files for content and wish to keep the content after the comparison (The resultant file can't be blank)
However, the first lines would be different in both files and I need diff command to ignore these first lines in both files.
For e.g -
PHP Code:
File 1 -
Abcd
test1
test2
test3
File 2 -
Abcfdfd
test1
test2
test3
Now, I am trying to use
PHP Code:
diff -ty -B -I "^Abc" file1 file2 > file3
Here, I am trying to use a ignore flag for diff to ignore lines in both files that start with "Abc" however, I keep getting syntax errors for diff saying - Try diff --help for more information.
Can someone please tell me how do I make the above happen? Any help is greatly appreciated -
Cheers,
Morgan