[CS-FSLUG] I need a quick way to edit quite a few html documents

l4c l4c at thelinuxlink.net
Wed Jun 8 09:04:26 CDT 2011


On 06/08/2011 09:58 AM, davidm at hisfeet.net wrote:
> My web site has gotten badly out dated from lack of maintainence. I want
> to get it back in shape.  One of the most immediate problems is that
> (since we added a blog, and gave it the address that was the address of
> the whole web site) every "home button" in every html file instead of
> leading back to the old "home page", leads back to the blog.
>
> I need a way to edit all of those html files with a "find and replace"
> function to correct that (and other errors). I'm using Mint10 (nearly the
> same as ubuntu).
>
> I'd prefer a color coded html editor capable of multiple documents, but
> even an effective method to do it from command line (if I can find
> adequate and simple documentation) would do the job.
>
> Any suggestions?
>
> Dave
>
>
>
> _______________________________________________
> ChristianSource FSLUG mailing list
> Christiansource at ofb.biz
> http://cs.uninetsolutions.com

for file in *.html; do sed -i 's/blogpage/homepage/g' $file; done
-- 
-Linc Fessenden

In the Beginning there was nothing, which exploded - Yeah right...




More information about the Christiansource mailing list