The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
checking whether line start with character or number
.
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
:
checking whether line start with character or number
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
10-13-2008
zaxxon
Moderator
Join Date: Sep 2007
Location: Germany
Posts: 2,290
Try out
Code:
sed
'/^[^0-9]/d' filename > newfilename
zaxxon
View Public Profile
Find all posts by zaxxon
Find zaxxon's past nominations received
Find zaxxon's present nominations given