You are here: Re: Inserting Lines into HTML Header « HTML « IT news, forums, messages
Re: Inserting Lines into HTML Header

Posted by Roy Schestowitz on 10/02/07 11:18

Toby Inkster wrote:

> Roy Schestowitz wrote:
>
>> If there exists a command-line tool that will add string X after a
>> regular expression Y is detected, _and_ apply this to /all/ files, then
>> I'd be a happy puppy.
>
> sed -i 's/<head>/<head><title>Hello World<\/title>/i;' *.html

Thanks a bunch Toby! Somehow I knew you'd be the most suitable person to
help.

Along with the following I can now manipulate things the way I wanted.

exec 3<&0
find . -type d -print |
while read dirname
do
(cd $dirname
exec 0<&3
"$@"
)
done
exec 3<&-


--
Roy S. Schestowitz
http://Schestowitz.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация