http://www.w3schools.com/xsl/

man xsltproc

On Apr 17, 2006, at 4:53 PM, Scott Granneman wrote:

> could one of you guys smarter than me help alan out? he's using a mac, 
> btw.
>
> scott
>
> ---------- Forwarded message ----------
> From: Alan German <[EMAIL PROTECTED]>
> Date: Apr 17, 2006 10:48 AM
> Subject: SED (or other) command help
> To: Scott Granneman <[EMAIL PROTECTED]>
>
>
> Scott,
>
> Given a file, similar to
>
> <html>
> <head>
> stuff
> </head>
> <body>
> <pre>
> content of interest
> </pre>
> </body>
> </html>
>
> I'd like a command line to rewrite that file, keeping the <pre></pre>
> tag pair and the content inbetween, so that the result looks like:
>
> <pre>
> content of interest
> </pre>
>
> Note that the content of interest will span multiple lines.
>
> I'd like the output to completely replace the input file.
>
> I've fooled around unsuccesfully a few minutes here with sed, but am
> not getting anywhere quick.
>
> Here's a posix regex that should match the <pre> tag pair and 
> contained text:
>
> /<pre>(?s).*<\/pre>/
>
>
> What's a good way to do this? Any help appreciated.
>
> TIA.
>
> Alan
>
>
>
> --
> R. Scott Granneman
> [EMAIL PROTECTED] ~ www.granneman.com
> Full list of publications: http://www.granneman.com/publications
> Read the Open Source Blog: http://opensource.weblogsinc.com
> Join GranneNotes! Information at www.granneman.com
>
> _______________________________________________
> CWE-LUG mailing list
> [email protected]
> http://www.cwelug.org/
> http://www.cwelug.org/archives/
> http://www.cwelug.org/mailinglist/
>
¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬
AgentM
[EMAIL PROTECTED]
¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬

 
_______________________________________________
CWE-LUG mailing list
[email protected]
http://www.cwelug.org/
http://www.cwelug.org/archives/
http://www.cwelug.org/mailinglist/

Reply via email to