![]() |
|
|
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 |
| return previous line for pattern match | braindrain | UNIX for Dummies Questions & Answers | 4 | 12-08-2008 05:17 PM |
| sed - Replace Line which contains the Pattern match with a new line | kousikan | Shell Programming and Scripting | 2 | 03-24-2007 07:24 AM |
| SED: match pattern & delete matched lines | not4google | Shell Programming and Scripting | 7 | 11-22-2006 09:58 AM |
| How to delete lines do NOT match a pattern | JumboGeng | UNIX for Dummies Questions & Answers | 1 | 09-20-2006 06:52 AM |
| match a pattern, print it and the next line | nymus7 | Shell Programming and Scripting | 4 | 07-29-2005 01:59 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Concatenating multiple lines to one line if match pattern
Hi all,
I've been working on a script which I have hit a road block now. I have written a script using sed to extract the below data and pumped into another file: Severity............: MAJORWARNING Summary: System temperature is out of normal range. Severity............: MAJORWARNING Summary: Adapter at hardware path 0/4/1/0 : Received an interrupt indicating and Elastic Store Error Storm Severity............: MAJORWARNING Summary: Adapter at hardware path 0/3/1/0 : Received an interrupt indicating and Elastic Store Error Storm Severity............: MAJORWARNING Summary: System temperature is out of normal range. I want to format it to look like this: "Severity:.......... Summary:........" "Severity:.......... Summary:........" "Severity:.......... Summary:........" "Severity:.......... Summary:........" so that each ocurance will be in one line Any ideas? Hope someone can help me quickly. Thanks phixsius. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|