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...
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
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) |...
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~/...
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.