Hi All,
I need to remove 1st 2 line from head and last 2 line from last.
I thought it would be possible by using the Head and tail command.
But after i am using it is not possible by it.
Example:Input file
N appends the next line into the pattern buffer and increases the line counter.
If the line counter equals 2 then delete the pattern buffer and this means that the two lines that are in there are deleted.
But never mind, my solution won't work for files with an odd number of lines :o
---------- Post updated at 14:28 ---------- Previous update was at 13:39 ----------