When using diff, is there a way to suppress the first two lines (listing the file names and times) and all the lines beginning with @@ in the output? All I want are the lines that show what to delete and what to add.
Here's the command I have currently:
diff file1 file2 -U 0 > output.txt
Sample output of what I get in the output.txt file with that command:
--- file1 2010-11-25 01:56:58.856462432 -0500 +++ file2 2010-11-25 01:57:20.100626348 -0500 @@ -145,2 +145 @@ -VI2 -US3 +VI4 @@ -168,2 +167,2 @@ -56VI -56PR +57VI +57PR
: whomever it was that added the comm command, it actually ended up being correct. I'll award you the answer if you post it back.