troubleshooting Question

This is AIX5.3..need a shell script or perl script

Avatar of aixtutorial
aixtutorialFlag for United States of America asked on
Unix OSLinux
3 Comments1 Solution580 ViewsLast Modified:
I have a text file which is as below
cat output.txt
./Work_0134_140755167.log
work      Dev      ab      da026:0      2012-09-24 00:00:13      Secondary Assignment
./Work_0134_140755168.log
work      Dev      ab      db086:0      2012-09-24 00:00:11     Authority Limit
work      Dev      ab      db086:0      2012-09-24 00:00:11      Value Process
./Work_0134_140755169.log
work      Dev      ab      da026:0      2012-09-24 00:00:16      Internal Alerts
./Mgr_0134_140755170.log
work      Dev      ab      da026:0      2012-09-24 00:00:17      Internal Alerts
./Work_0134_140755171.log
'
'

but I want the output to be as below..The log file in the ouput.txt should gte appended to the first line below until the occurance of next log file and it should be the same


./Work_0134_140755167.log work      Dev      ab      da026:0      2012-09-24 00:00:13      Secondary Assignment

./Work_0134_140755168.log work      Dev      ab      db086:0      2012-09-24 00:00:11     Authority Limit
./Work_0134_140755168.log work      Dev      ab      db086:0      2012-09-24 00:00:11      Value Process

./Work_0134_140755169.log work      Dev      ab      da026:0      2012-09-24 00:00:16      Internal Alerts

./Mgr_0134_140755170.log work      Dev      ab      da026:0      2012-09-24 00:00:17      Internal Alerts
./Work_0134_140755171.log

'
'
'
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros