That works great PH....I think I had an extra bracket somewhere that was giving me all kinds of parse errors when I tried it the first time....I really appreciate it. How long have you been programming with AWK?
Mark
Hey PH...you are correct...that does work...I had to change the brackets around a bit to get it to work in my awk script like this: However, it's putting a blank line at the top of filename1. That sounds easy to correct...thank you so much for your tip. I knew there had to be a way to do...
Sorry PH...it was late last night and I should've gone into more detail on what I was trying to accomplish! I really appreciate you helping me out. Here's my scenario:
I will have 1 input file that will have a variable number of records....more than likely thousands of records...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.