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

Re: substitute strings in text files (links in html files)



> 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
____________________________________________________________________
Never include a comment that will help | Andrew Ivanov
someone else understand your code.     | c680789@showme.missouri.edu
If they understand it, they don't      | ICQ: 12402354
need you.                              |


Reply to: