Computing.Net > Forums > Unix > put last chracters in front in line

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

put last chracters in front in line

Reply to Message Icon

Name: ashg
Date: July 22, 2008 at 14:49:00 Pacific
OS: solaris
CPU/Ram: 2
Product: 2
Comment:

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



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Combining multiple output how to find complete path...



Post Locked

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


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: put last chracters in front in line

Delete last character in a file www.computing.net/answers/unix/delete-last-character-in-a-file/5310.html

Unix script - merging date in to a www.computing.net/answers/unix/unix-script-merging-date-in-to-a-/3782.html

Script to insert lines in a file www.computing.net/answers/unix/script-to-insert-lines-in-a-file/4992.html