![]() |
|
|
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 |
| Need help in sed command (adding a blank line btw each block generated by pattern) | frozensmilz | Shell Programming and Scripting | 2 | 01-08-2009 12:12 AM |
| sed: delete regex line and next line if blank | one71 | Shell Programming and Scripting | 2 | 09-18-2008 06:53 AM |
| Match a specific IP range | sylaan | Shell Programming and Scripting | 5 | 07-16-2008 07:42 AM |
| Adding blank white sapce at specific column | Jae | Shell Programming and Scripting | 6 | 08-08-2007 09:20 AM |
| adding blank line in egrep | antalexi | UNIX for Dummies Questions & Answers | 2 | 05-24-2004 01:40 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
SED - adding blank line after each Range Match
the following range matching works great but i wish to add a blank line after each range result set... which i've tried and researched to no avail MY INPUT DATA: Quote:
CURRENT CODE I'M USING: Code:
sed -n '/[Ss][Ee][Ll][Ee][Cc][Tt][ ]*$/,/;/p' $INPUT_FILE RESULTS I'M GETTING: Quote:
RESULT I looking to get: (see blank line after semicolumn) Quote:
I thank you in advance for your time. -----Post Update----- I found solution at: Need help in sed command (adding a blank line btw each block generated by pattern) Sorry for the trouble... didn't see that post until it came up as "helpfull thread" to my new post :-( Last edited by danmauer; 06-10-2009 at 01:05 PM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|