Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. mhodges88

    Manipulating Last Line In Input File

    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
  2. mhodges88

    Manipulating Last Line In Input File

    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...
  3. mhodges88

    Manipulating Last Line In Input File

    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...
  4. mhodges88

    Manipulating Last Line In Input File

    Unfortunately that doesn't work for me. That omits the first record from being printed to file1, but I need the last record to be omitted. Mark
  5. mhodges88

    Manipulating Last Line In Input File

    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...

Part and Inventory Search

Back
Top