The UNIX and Linux Forums
>
Operating Systems
>
SUN Solaris
delete first 100 lines rather than zero out of file
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
delete first 100 lines rather than zero out of file
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
11-13-2007
matrixmadhan
Technorati Master
Join Date: Mar 2005
Location: k-tier distributed caching
Posts: 2,736
if ' -i ' option is available in the
sed
you are using (
GNU
sed
)
use it
Code:
sed
-i '1,100d' file
just the above would do
matrixmadhan
View Public Profile
Find all posts by matrixmadhan