The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
sed: Find start of pattern and extract text to end of line, including the pattern
.
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
:
sed: Find start of pattern and extract text to end of line, including the pattern
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
05-27-2009
edgarvm
Registered User
Join Date: May 2009
Posts: 26
I have done a few modifications to your solution, try this:
Code:
grep -e '-[EW]-' input.txt |
sed
's/^.*\(-[EW]-\)/\1/'
edgarvm
View Public Profile
Find all posts by edgarvm
Find edgarvm's past nominations received
Find edgarvm's present nominations given