LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Fw: Find&Replace Script

[ILUG] Fw: Find&Replace Script

Ruairi Newman ruairi.newman at eurokom.ie
Mon Aug 23 14:27:08 IST 1999


More on the Find & replace q.

Regards,

Ruairi

-----Original Message-----


>Thanks all who replied.
>Unfortunately my mail is down hence I am mailing through another as I am
>up shit creek to be quite honest.
>
>now I forgot to include some additional info.
>the script needs to exclude all index.html and menu.html files. It also
>needs to appen a foot ssi comman to the bottom of the file. Which is
>also part of the problem.
>
>so say for example the document looked like the following
>
>10 <html>
>20 <head>
>30 <title>title</title></head>
>40 <body>
>50 <table with="20" >
>60 <include stuff>
>70 <all text here blah blah blah>
>80 <include stuff>
>90 </body>
>100 </html>
>
>not the top stff is allright till I get to the table on line 50 I need
>to subsitute this whict my ssi <!--#exec cmd="/path/to/my/cmd"--> now
>the script has to realise that anything in the table tag needs to be
>deleted and replace it with my ssi. i can leave the server specific stuu
>alone as it does not show up. but also it has to go to the end of the
>document just under the include (80) and put in <!--#exec
>cmd="/path/to/other/cmd"--> say for the footer.
>
>If I say run find . -type f -name \*.html -exec cmd {} \;  It will
>append all files with that extension and stuff which can feck up all the
>frames pages etc (I didn't design it).
>
>Now I thought I had found a script of my dreams but the server turend
>out to be a porn sever so all out of luck at the moment.
>
>So has anyone got any ideas? I am lost not as this level of scripting is
>gone wayyyyyyy over my head. I would greatly appreciate any help you
>could give me
>
>thanks
>Richard
>





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell