[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tuesday 18 September 2001 04:38, Craig wrote:
> Hi ladies and fellas
> Need to do an extended find and replace with VIM, anyone
> know the syntax for me ? I have a really long named.conf
> file I need to modify ...
> Kind regards
> Craig

sed -e 's/what_to_find/replace_it_with_this/g' named.conf

By default it sends all the output to stdout.  You can redirect 
it to another file.  It does multi-line as well.  Try info sed 
or Google it.  Very cool program.


Reply to: