Shell Getting diff to ignore minor differences between files

Is there any way to use diff() to accept two files as being the same if the only difference is the first line which may contain some version information, apart from which the remainder of the file is the same?
 
Write a little script that creates copies of the two files, with the first line blanked out, then compares the copies. Only problem is that the file names will be wrong in the diff output. That may bother you, or it might not. If it really bothers you, I can think of nasty hacks to solve that problem, but those have risks that I don't like (temporarily rename the original file).
 
Back
Top