![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Perl parsing compared to Ksh parsing | popeye | Shell Programming and Scripting | 1 | 08-06-2008 10:46 PM |
| Parsing Powerbroker Logs for SysAdmin Changes (SOX) | bcouchtx | UNIX for Dummies Questions & Answers | 1 | 07-08-2008 02:16 PM |
| Generating xls with utf-8 format | kalyanramurs | Shell Programming and Scripting | 0 | 06-21-2008 07:27 AM |
| Generating a report -Formatted printing -Urgent | jisha | Shell Programming and Scripting | 1 | 01-10-2008 02:59 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
My file will contain following(log.txt):
start testcase: config loading ...... error XXXX ..... end testcase: config loading, result failed start testcase: ping check ..... error ZZZZZ ..... error AAAAA end testcase: Ping check, result failed I am expecting below output. ========================================= Testcase: config loading error XXXX Testcase: ping check error ZZZZ error AAAA ============================================== There are so many testcases like this in file also the number of error in testcase will vary. Please give better idea using shell script. Your help will be appreciated. Thanks |
|
||||
|
Thanks zaxxon for your response. I have slighty changed my erquirement
start testcase: config loading ...... error XXXX ..... end testcase: config loading, result failed start testcase: ping check ..... error ZZZZZ ..... error AAAAA end testcase: Ping check, result failed start testcase: unconfig ..... ..... end testcase: unconfig, result passed I am expecting below output. Testcase: config loading error XXXX error YYYY Testcase: ping check error ZZZZ error AAAA |
|
||||
|
Hi era,
Thanks for your quick response. Please have a look into the modified requirement and let me know ur inputs. |
| Sponsored Links | ||
|
|