The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
deleting a line but keeping the same file
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Rules & FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
deleting a line but keeping the same file
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
05-13-2008
robotronic
Can I play with madness?
Join Date: Apr 2002
Location: Italy
Posts: 370
If you have GNU sed, which supports "-i" option, you can use:
Code:
sed -i "/mystring/d" Myfile
robotronic
View Public Profile
Find all posts by robotronic