The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Grepping characters
.
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
:
Grepping characters
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
04-23-2009
summer_cherry
Registered User
Join Date: Jun 2007
Location: Beijing China
Posts: 1,088
Code:
sed
-n '/
pattern
/ { s/^.*
pattern
\(.\{7\}\).*$/\1/ p }'
a.txt
summer_cherry
View Public Profile
Find all posts by summer_cherry
Find summer_cherry's past nominations received
Find summer_cherry's present nominations given