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

    Multi record merge

    nawk worked. Just one bug that I've discovered in testing. The following input modifyTimestamp: 20040719990632Z modifiersName: uid=superadmin,dc=. HsiaStaticAddrInfo: s999-232-127-159@xxx.net@0:0:0:0:0:0@999.23 2.127.159 HsiaStaticAddrInfo: s999-232-127-160@xxx.net@0:0:0:0:0:0@999.23...
  2. hfeldma1

    Multi record merge

    Not quite. First the 1 cause an error. If I remove it it runs. Second it only outputs the lines that contian HsiaStaticAddrInfo I need the other sample lines outputed as well unmodified.
  3. hfeldma1

    Multi record merge

    Close, it doesn't handle the following condition. HsiaServiceOption: Server-2-IP@0@0@2@2@yes HsiaServicePoint: Region 650 HsiaStaticAddrInfo: s1-1-1-1@xx.net@0:B0:D0:E7:2E:14@2 16.232.87.259 HsiaStaticAddrInfo: s1-1-1-1@xx.net@0:B0:D0:E7:2E:14@2 16.232.87.260 HsiaStaticAddrInfo...
  4. hfeldma1

    Multi record merge

    Input HsiaServiceOption: Server-2-IP@0@0@2@2@yes HsiaServicePoint: Region 650 HsiaStaticAddrInfo: s1-1-1-1@xx.net@0:B0:D0:E7:2E:14@21 6.232.87.259 HsiaStaticAddrInfo: s1-1-1-1@xx.net@0:B0:D0:E7:2E:14@21 6.232.87.260 modifiersName: uid=superadmin,dc=. modifyTimestamp: 20031203063727Z Expected...
  5. hfeldma1

    Multi record merge

    Is there a way to do only the merge if it starts with StaticAddrInfo: ? For lines that do not start with StaticAddrInfo: just print it as is. I've tried the following but it's not working? awk '{buf=buf""$0;if($0~/StaticAddrInfo:/){if($0!~/:/){print buf;buf=""}}}'
  6. hfeldma1

    Multi record merge

    Hi I'm looking for an awk script that can merge the following two records into 1 record. Can anyone help? StaticAddrInfo: s1-1-1-1@xx.net@0:0:0:0:0:0@1.1. 1.1 The key is that the second record does not contain a ':'

Part and Inventory Search

Back
Top