I have a text file type where I have a need to discard the first N1 lines and the last N2 lines but keep everything in the middle. The length of the middle will usually vary from file to file.
The first N1 lines can be removed by using TAIL to skip them and then use a large N value to keep the rest.
I haven't found an easy way to remove the last N2 lines though. It seems to me that a combination of HEAD and TAIL should allow that to be done.
At least that is the case for the GNU versions.
http://stackoverflow.com/questions/...-from-the-tail-of-a-file-without-the-use-of-h
Might there be another way to achieve the same in TCC?
The first N1 lines can be removed by using TAIL to skip them and then use a large N value to keep the rest.
I haven't found an easy way to remove the last N2 lines though. It seems to me that a combination of HEAD and TAIL should allow that to be done.
At least that is the case for the GNU versions.
http://stackoverflow.com/questions/...-from-the-tail-of-a-file-without-the-use-of-h
Might there be another way to achieve the same in TCC?