So I want to tail a file and remove the number of lines from the file is that possible with one line line in Linux? Almost essentially just moving lines of text from one file to another.
For example:
tail -8 foo-file.txt >> newfile.txt;
now... remove -8 lines from newfile.txt
.