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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by trub1

  1. trub1

    Join a line to a previous line after finding pattern

    Thank you for your help. This works perfectly!!!
  2. trub1

    Join a line to a previous line after finding pattern

    Here is the example with line numbers. Great idea In file 1.Firmware Revisions ..................... SystemROM (8/28/1998) | VideoROM 2. (05/21/97) 3. System ROM ............................ 8/28/1998 4. Video ROM ............................. 05/21/97...
  3. trub1

    Join a line to a previous line after finding pattern

    I am not sure what happened in the newest script change. It looks like it appends the pattern to the next occurance of the pattern. Don't get me wrong I really appreciate any help I can get. Maybe I did not explain what I am trying to accomplish very well
  4. trub1

    Join a line to a previous line after finding pattern

    Note you will need to cut the examples into something that doesn't wrap to see the result.
  5. trub1

    Join a line to a previous line after finding pattern

    The latest suggestion gave undesired results. This is what I am trying to do. My first script does the join but I lose the lines in the output that do not need to be joined. I want to end up with both. Original File Example Firmware Revisions ..................... SystemROM (8/28/1998) |...
  6. trub1

    Join a line to a previous line after finding pattern

    I got the script working and the join works I want to also print the lines not matching. The end result would be printing all lines while joining only lines that start with a specific pattern (41 spaces in this case). My script only prints the joins at this point Here is the script {if ($0~/...

Part and Inventory Search

Back
Top