The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
vi + regexp + substitute
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
:
vi + regexp + substitute
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
8
(
permalink
)
12-10-2004
zazzybob
Registered Geek
Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
I think I'd rather use sed than vi
Code:
sed "/blabla\ 'toto'\ rep:\/titi\/toto\//d" infile > outfile
Notice that quoting and escapes have changed here...
Cheers
ZB
zazzybob
View Public Profile
Visit zazzybob's homepage!
Find all posts by zazzybob