The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Print Selection of Line between two Identifiers.
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Print Selection of Line between two Identifiers.
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
01-06-2009
frostmourn
Registered User
Join Date: Jan 2009
Posts: 8
Code:
sed
-n '/\[START1\]/{:a;N;/\[END1\]/!ba;s/\n[^\n]\+$//;p}' filename
frostmourn
View Public Profile
Find all posts by frostmourn
Find frostmourn's past nominations received
Find frostmourn's present nominations given