In <[EMAIL PROTECTED]>, on 01/15/99
at 12:39 PM, "Oliver Thuns" <[EMAIL PROTECTED]> said:
>Hello!
>How could I substitute a string (links) in html files with standard Linux
>(debian) tools?
>i.e. I want to change every http://one.domain.com in
>http://two.domain.com in some files and files i
> Hello!
>
> How could I substitute a string (links) in html files with standard
> Linux (debian) tools?
>
> i.e. I want to change every http://one.domain.com in
> http://two.domain.com in some files and files in subdirs.
sed -e "s/one.domain.com/two.domain.com/" originalfile > newfile
Andrew
_
On Fri, 15 Jan 1999, Oliver Thuns wrote:
> Hello!
>
> How could I substitute a string (links) in html files with standard
> Linux (debian) tools?
>
> i.e. I want to change every http://one.domain.com in
> http://two.domain.com in some files and files in subdirs.
>
sed -e "s/two/one/g" f1.html
On Fri, 15 Jan 1999, Oliver Thuns wrote:
> Hello!
>
> How could I substitute a string (links) in html files with standard
> Linux (debian) tools?
use sed. It is very powerful for this sort of thing.
Matthew
--
Elen sila lumenn' omentielvo
Steward of the Cambridge Tolkien Society
Selwyn Coll
4 matches
Mail list logo