text1.txt
20150716
aaaa
bbbb
cccc
dddd
END
I would like to remove 20150716, then the whole text will move up by 1 line and remove the last particular string "END". Finally, save as a new file called text1_copy.txt. Then, file becomes:
aaaa
bbbb
cccc
dddd
Any ideas? Thanks.