Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: Please help for building my site with menus and external css

__/ [ Toby Inkster ] on Saturday 29 April 2006 17:22 \__

> Roy Schestowitz wrote:
> 
>>                   sed 's/<head>/<head><link rel="stylesheet"
>>                     href="/styles/yourstyle.css" type="text/css" />/i;'
> 
> This will work?! Shoudn't you be escaping some of those slashes?

Oops. You're right. I added some slashes without testing, let alone thinking.
That 'script', by the way, is a derivative of something that /you/ once
wrote in an answer to my question. I have used this for the processing of
thousands of pages over the past year or so, mainly after LaTeX->HTML
conversions. Thanks for that.

Best wishes,

Roy

-- 
Roy S. Schestowitz      | Useless fact: There are five regular polyhedra
http://Schestowitz.com  |    SuSE Linux     ¦     PGP-Key: 0x74572E8E
  7:35am  up 2 days 14:40,  12 users,  load average: 0.70, 1.04, 0.82
      http://iuron.com - Open Source knowledge engine project

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index