I am new to AWK and I have what seems to be an easy task, but am having trouble manipulating the last line in the file. I figured out how to print the last line of the file to a new file by END{print > filename} because it stores that last line in a buffer, but let's say I want to print everything in the file to another file, with the exception of that final line to a different file, but I don't have a pattern to search for as this line is always going to be variable. Is there a simple way to do this? Thanks.
Mark
Mark