The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #10 (permalink)  
Old 12-10-2004
zazzybob's Avatar
zazzybob zazzybob is offline
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Yes, you can add metacharacters such as

sed "/^.*blabla\ 'toto'\ rep:\/titi\/toto\/.*$/d" infile > outfile

Also; you can use the -i flag to sed if your version supports it to edit the file in-place, although I personally wouldn't recommend it - at least this way with redirection you keep your original intact incase you form your "sed" badly and ruin the file!

Cheers
ZB
Reply With Quote