| Newsgroups |
gmane.editors.sed.user |
| Message-ID |
<[email protected]> |
On 2015-03-05 21:19, [email protected] [sed-users] wrote:
> $ cat in
> first
> second
> third
> third
> fourth
> fifth
>
> $ sed -n '/second/,/fourth/ {/second/ d; /fourth/ d; p}' in
> third
> third
perl -ne '$i=1,next if/^sec/; $i=0 if/^fou/; print if $i' in
third
third
perl -ne '$s=/^sec/../^fou/; print if $s>1 and $s!~/E/' in
third
third
--
Ruud
------------------------------------
------------------------------------
--
------------------------------------
Yahoo Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/sed-users/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/sed-users/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo Groups is subject to:
https://info.yahoo.com/legal/us/yahoo/utos/terms/