The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
sed-question delete everthing after a couple of numbers
.
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-question delete everthing after a couple of numbers
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
10-22-2008
zaxxon
Moderator
Join Date: Sep 2007
Location: Germany
Posts: 2,311
Code:
sed
's/\(^[\.0-9]*\)[^.0-9]*/\1/g' infile
zaxxon
View Public Profile
Find all posts by zaxxon
Find zaxxon's past nominations received
Find zaxxon's present nominations given