Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Coordination

Status
Not open for further replies.

weirdcpu

IS-IT--Management
Mar 19, 2005
22
FR
Hello,

In scripting language ( shell, perl, python ) does someone knows of a way to coordinate the source of two HTML pages ?

I m looking for something like the diff command ( unix ) but wich understand the HTML tags :

For example

older_page.htm : ...<TABLE><TR><href link1><href link2></TR>...</TABLE>

new_page.html : ...<TABLE><TR><href newlink></TR>

diffhtml older_page.html new_page.html >> my.html

should give me :
...<TABLE><TR><TR><href newlink><href link1><href link2></TR>...</TABLE>

thanks.
 
Firstly, HTML isn't a scripting language.

You may be able to do something with by comparing the modified dates of the files with a Server Side language such as PHP, ASP or ColdFusion.

Or since you mention PERL, use a PERL CGI script.

Foamcow Heavy Industries - Web design and ranting
Toccoa Games - Day of Defeat gaming community
Target Marketing Communications - Advertising, Direct Marketing and Public Relations
"I'm making time
 

" HTML isn't a scripting language"

I know, the script is for processing html, not to be process
by html.

"use a PERL CGI script."

Yes, that's what i m looking for...

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top