I've made some tries, but there is always a problem, there is nothing in the second file and the first one is changed in wrong way. At the moment i made this:
Sample File
this is a long line
short
this is a long line
short
this is a long line
short
this is a long line
short
this is a long line
short
this is a long line
short
this is a long line
short
this is a long line
short
this is a long line
short
this is a long line
short Output
this is a long line
this is a long line
this is a long line
this is a long line
this is a long line
this is a long line
this is a long line
this is a long line
this is a long line
this is a long line
1 2
Number of lines in input file: 20
Number of lines in output file: 10