How to cat two files after each other but omit the last/first line respectively?

Viewed 15519

I have two files I want to cat together. However, the last line of the first file and the first line of the last file should be omitted.

I am sure this can be done in a UNIX shell (or rather, Cygwin). But how?

7 Answers
Related