Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hello,
I am parsing a file.I have different types of lines in this file.I want to look for line which starts with Username and put everything after date field ([16/Jul/2008:08:22:46 -0500]: Category Admin (300), Event ChangePassword (801),) in the front of this line.
Username testadmi, SessionId testuser@J2345bcdvrabcdyxzyNPSB7Cong4= DirectoryName test123UserStore ObjectName 000aaaaaa, ObjectClass , ObjectPath uid=000aaaaaa,ou=ab,o=abc Organization People, Role Description: Modify password Status: [16/Jul/2008:08:22:46 -0500]: Category Admin (300), Event ChangePassword (801),
so the line should look like
[16/Jul/2008:08:22:46 -0500]: Category Admin (300), Event ChangePassword (801),Username testadmi, SessionId testuser@J2345bcdvrabcdyxzyNPSB7Cong4= DirectoryName test123UserStore ObjectName 000aaaaaa, ObjectClass , ObjectPath uid=000aaaaaa,ou=ab,o=abc Organization People, Role Description: Modify password Status:
Could you please help.Your help will be highly appreciated.
Thanks
Ash

![]() |
Combining multiple output
|
how to find complete path...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |