I want to diff only the first line of two files, as opposed to the entire file. How would I do that? I only need a solution for the the first line, but if you could specify the number of lines that would be a much better answer.
So diff would return no differences between the following two files:
a
1
2
. and:
a
3
4