LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-09-2019, 02:49 AM   #1
jmishal
LQ Newbie
 
Registered: Jun 2008
Posts: 19

Rep: Reputation: 0
replace text in html with links from xml files


Hey all, I'm trying to write a bash script using some tools such as find & xargs and grep, sed etc I'll try to give as many details as possible

I have a lots of html files where I need to replace multi text based on links inside xml files and It seems that the image ID is that it will serve as a reference which will depend on them

I'll give an example

here one of my HTML files contain multi image id such as 6772.jpg , 6733.jpg , 6222.jpg

PHP Code:
<html>
<
div class="card" title="xxx1">
            <
div class="card-header" role="tab" id="">
                                        <
div class="disable-lesson">
                        <
div class="row">
                            <
div class="col-9 text-left d-flex align-items-center">
                                <
strong>1</strong>
                                <
img class="thumb" src="https://example.com/video/6772.jpg" alt="learn">
                                <
span class="session-title" >xx1</span>
                            </
div>
                            <
div class="col-3 text-center text-md-right">
                                <
img src="../app/images/clock.png" alt="clock">
                                <
span class="text-bold-500 fz-13">2 min</span>
                            </
div>
                        </
div>
                    </
div>
                                </
div>
        </
div>

        <
div class="card" title="xxx2">
            <
div class="card-header" role="tab" id="">
                                        <
div class="disable-lesson">
                        <
div class="row">
                            <
div class="col-9 text-left d-flex align-items-center">
                                <
strong>2</strong>
                                <
img class="thumb" src="https://example.com/video/6733.jpg" alt="learn">
                                <
span class="session-title" >xxx2</span>
                            </
div>
                            <
div class="col-3 text-center text-md-right">
                                <
img src="../app/images/clock.png" alt="clock">
                                <
span class="text-bold-500 fz-13">2 min</span>
                            </
div>
                        </
div>
                    </
div>
                                </
div>
        </
div>

        <
div class="card" title="xxx3">
            <
div class="card-header" role="tab" id="">
                                        <
div class="disable-lesson">
                        <
div class="row">
                            <
div class="col-9 text-left d-flex align-items-center">
                                <
strong>3</strong>
                                <
img class="thumb" src="https://example.com/video/6222.jpg" alt="learn">
                                <
span class="session-title" >xxx3</span>
                            </
div>
                            <
div class="col-3 text-center text-md-right">
                                <
img src="../app/images/clock.png" alt="clock">
                                <
span class="text-bold-500 fz-13">5 min</span>
                            </
div>
                        </
div>
                    </
div>
                                </
div>
        </
div>
</
html
where the "disable-lesson" need to replace with <a href="my link"> found it in the xml file

and the img id 6772.jpg , 6733.jpg , 6222.jpg is matching and found in xml files

and here the 5510084.xml, 5510900.xml , 4490300.xml files example

5510084.xml

Code:
<?xml version="1.0" encoding="UTF-8"?>
<videos>
<video>
<id>5510084</id>
<title>101 movie .mp4</title>
<description/>
<url>https://example.com/xxxx/5510084.html</url>
<thumbnail_small>https://example.com/video/6772.jpg</thumbnail_small>
<duration>480</duration>
<width>1920</width>
<height>1080</height>
<tags/>
<embed_privacy>approved</embed_privacy>
</video>
</videos>
5510900.xml

Code:
    <?xml version="1.0" encoding="UTF-8"?>
<videos>
<video>
<id>5510900</id>
<title>401 movieR .mp4</title>
<description/>
<url>https://example.com/xxxx/5510900.html</url>
<thumbnail_small>https://example.com/video/6733.jpg</thumbnail_small>
<duration>480</duration>
<width>1920</width>
<height>1080</height>
<tags/>
<embed_privacy>approved</embed_privacy>
</video>
</videos>
4490300.xml


Code:
        <?xml version="1.0" encoding="UTF-8"?>
<videos>
<video>
<id>4490300</id>
<title>990 GoEnd .mp4</title>
<description/>
<url>https://example.com/xxxx/4490300.html</url>
<thumbnail_small>https://example.com/video/6222.jpg</thumbnail_small>
<duration>480</duration>
<width>1920</width>
<height>1080</height>
<tags/>
<embed_privacy>approved</embed_privacy>
</video>
</videos>

The final html files becomes like this

PHP Code:
                <html>          

   <
div class="card" title="xxx1">
            <
div class="card-header" role="tab" id="">
                                        <
div class="disable-lesson">
                                        <
a href="https://example.com/xxxx/5510084.html">
                        <
div class="row">
                            <
div class="col-9 text-left d-flex align-items-center">
                                <
strong>1</strong>
                                <
img class="thumb" src="https://example.com/video/6772.jpg" alt="learn">
                                <
span class="session-title" >xx1</span>
                            </
div>
                            <
div class="col-3 text-center text-md-right">
                                <
img src="../app/images/clock.png" alt="clock">
                                <
span class="text-bold-500 fz-13">2 min</span>
                            </
div>
                        </
div>
                    </
div>
                                </
div>
        </
div>

        <
div class="card" title="xxx2">
            <
div class="card-header" role="tab" id="">
                                        <
a href="https://example.com/xxxx/5510900.html">
                        <
div class="row">
                            <
div class="col-9 text-left d-flex align-items-center">
                                <
strong>2</strong>
                                <
img class="thumb" src="https://example.com/video/6733.jpg" alt="learn">
                                <
span class="session-title" >xxx2</span>
                            </
div>
                            <
div class="col-3 text-center text-md-right">
                                <
img src="../app/images/clock.png" alt="clock">
                                <
span class="text-bold-500 fz-13">2 min</span>
                            </
div>
                        </
div>
                    </
div>
                                </
div>
        </
div>

        <
div class="card" title="xxx3">
            <
div class="card-header" role="tab" id="">
                                        <
a href="https://example.com/xxxx/4490300.html">
                        <
div class="row">
                            <
div class="col-9 text-left d-flex align-items-center">
                                <
strong>3</strong>
                                <
img class="thumb" src="https://example.com/video/6222.jpg" alt="learn">
                                <
span class="session-title" >xxx3</span>
                            </
div>
                            <
div class="col-3 text-center text-md-right">
                                <
img src="../app/images/clock.png" alt="clock">
                                <
span class="text-bold-500 fz-13">5 min</span>
                            </
div>
                        </
div>
                    </
div>
                                </
div>
        </
div>
</
html
.
 
Old 09-09-2019, 03:59 AM   #2
Turbocapitalist
Senior Member
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 4,112
Blog Entries: 3

Rep: Reputation: 2003Reputation: 2003Reputation: 2003Reputation: 2003Reputation: 2003Reputation: 2003Reputation: 2003Reputation: 2003Reputation: 2003Reputation: 2003Reputation: 2003
HTML is beyond sed's capabilities, there are just too many ways in which it can break. You'll need a proper HTML parser such as CPAN's HTML::TreeBuilder::XPath, HTML::TokeParser, HTML::Twig, or HTML::Parser, each for Perl. Or you can look for the equivalents in Python.

For the data file you'd need XML::XPath or XML::Parser to read in and find the material to be worked over in the HTML file.

It's not hard once you know the tools but may take a day or two to get there if they are unfamiliar. I'd lean towards using the XPath-based tools because each of the XPaths and some of the logic will be portable.
 
1 members found this post helpful.
Old 09-09-2019, 02:24 PM   #3
individual
Member
 
Registered: Jul 2018
Posts: 234

Rep: Reputation: 176Reputation: 176
Like Turbocapitalist said, this would be very difficult to do using plain *nix tools. Offhand I only know of pup, which is a command-line tool that can query HTML using CSS selectors, but it doesn't let you modify the HTML.

If you want to go the Perl route, I did this in 23 SLOC (not bragging, just saying how quickly it can be done with a small amount of code) using HTML::TreeBuilder and XML::XPath. Otherwise, pick a language you're comfortable with and you should be able to do it in a similar fashion.
 
Old 09-09-2019, 02:50 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,307
Blog Entries: 9

Rep: Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309
Somehow I missed the point where you show us what you already tried?
Anyhow, I'd look into tools like xmlstarlet, that were designed to do what you want.
 
Old 09-11-2019, 03:18 AM   #5
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Slack, Debian, Mint, Puppy, Raspbian
Posts: 3,462

Rep: Reputation: 218Reputation: 218Reputation: 218
There are many ways to do this, I have done it a lot.
But IMHO by far the easiest method is, as usual, use a tool designed specifically for the job.
Namely XSLT

There are CLI tools for it like 'xlstproc' and 'xmlstartlet'

You can get the hang of it quickly, it is much more productive and it is quite fun to do.
 
1 members found this post helpful.
Old 09-11-2019, 10:33 PM   #6
rigor
Member
 
Registered: Sep 2011
Posts: 280

Rep: Reputation: Disabled
Hi jmishal !

I feel that what sort of tools might be a good choice to use can depend on how much the situation you wish to handle can change over time.
if the structure of the HTML and XML files that you wish to process is fairly fixed, but just the data values inside change somewhat, then
using gawk from a bash script might be good enough. If the HTML classes, or XML tags can change, then tools that understand the structure
of HTML and XML might be better choices.

Just as an example of what could be done if the structure of the HTML and XML files is fairly fixed, I banged something together with gawk.

do_simple_mods.gawk:
Code:
BEGIN   {
            html_line[0] = "" ;
            html_lines = 0 ;

            url[0] = "" ;
            url_lines = 0 ;
            small_thumb[""] = "" ;

            disabled[0] = 0 ;
            thumb[0] = "" ;
            replacements = 0 ;

            file_type = "html" ;
        }


BEGINFILE   {  if (  index( FILENAME ,  "gawk" )  ==  0  )  {  file_type = substr(  FILENAME ,  index( FILENAME ,  "." ) + 1  ) ;  }  }

ENDFILE     {}


/class="disable-lesson"/  {  ++html_lines ;  html_line[html_lines] = $0 ;  ++replacements ;  disabled[replacements] = NR ;  next ;  }

/class="thumb"/  {  ++html_lines ;  html_line[html_lines] = $0 ;  split( $0 ,  pieces ,  /\"/  ) ;  thumb[replacements] = pieces[4] ;  next ;  }

/<url>/  {  ++url_lines ;  split( $0 ,  pieces ,  /[\<\>]/  ) ;  url[url_lines] = pieces[3] ;  next ;  }

/<thumbnail_small>/  {  ++small_thumbs ;  split( $0 ,  pieces ,  /[\<\>]/  ) ;  small_thumb[ pieces[3] ] = url_lines ;  next ;  }

{  if (  file_type  ==  "html"  )  {  ++html_lines ;  html_line[html_lines] = $0 ;  }  }

END {
        replacing = 1 ;

        for (  html_line_num = 1 ;  html_line_num  <=  html_lines ;  ++html_line_num  )
        {
            if (  html_line_num  !=  disabled[replacing]  )
                print html_line[ html_line_num ] ;
            else
            {
                print "                    <a href=\042"  url[ small_thumb[ thumb[replacing] ] ]  "\042>" ;
                ++replacing ;
            }
        }
    }
I put the html input you gave in a file named file1.html. Running the gawk program using the data files that you gave as examples as inputs to the gawk program, with this command:
Code:
gawk -f do_simple_mods.gawk file1.html 5510084.xml 5510900.xml 4490300.xml > file_out2.html
Here's what the gawk program put in the output file, named file_out2.html:
Code:
<html>
<div class="card" title="xxx1">
            <div class="card-header" role="tab" id="">
                    <a href="https://example.com/xxxx/5510084.html">
                        <div class="row">
                            <div class="col-9 text-left d-flex align-items-center">
                                <strong>1</strong>
                                <img class="thumb" src="https://example.com/video/6772.jpg" alt="learn">
                                <span class="session-title" >xx1</span>
                            </div>
                            <div class="col-3 text-center text-md-right">
                                <img src="../app/images/clock.png" alt="clock">
                                <span class="text-bold-500 fz-13">2 min</span>
                            </div>
                        </div>
                    </div>
                                </div>
        </div>

        <div class="card" title="xxx2">
            <div class="card-header" role="tab" id="">
                    <a href="https://example.com/xxxx/5510900.html">
                        <div class="row">
                            <div class="col-9 text-left d-flex align-items-center">
                                <strong>2</strong>
                                <img class="thumb" src="https://example.com/video/6733.jpg" alt="learn">
                                <span class="session-title" >xxx2</span>
                            </div>
                            <div class="col-3 text-center text-md-right">
                                <img src="../app/images/clock.png" alt="clock">
                                <span class="text-bold-500 fz-13">2 min</span>
                            </div>
                        </div>
                    </div>
                                </div>
        </div>

        <div class="card" title="xxx3">
            <div class="card-header" role="tab" id="">
                    <a href="https://example.com/xxxx/4490300.html">
                        <div class="row">
                            <div class="col-9 text-left d-flex align-items-center">
                                <strong>3</strong>
                                <img class="thumb" src="https://example.com/video/6222.jpg" alt="learn">
                                <span class="session-title" >xxx3</span>
                            </div>
                            <div class="col-3 text-center text-md-right">
                                <img src="../app/images/clock.png" alt="clock">
                                <span class="text-bold-500 fz-13">5 min</span>
                            </div>
                        </div>
                    </div>
                                </div>file
        </div>
</html>
IF I'm thinking correctly, and IF I understood what you wanted, it seems to be almost identical to the desired output you gave as an example, apart from "whitespace", and it actually did replace the "disable-lesson" "div" element with an "a" element, rather than inserting the "a" element, after the "div" element. In the example output you gave, inserting an "a" element after the "div" of "disable-lesson" class appeared to be an error in the example output.

HTH.
 
Old 09-13-2019, 06:21 AM   #7
jmishal
LQ Newbie
 
Registered: Jun 2008
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rigor View Post
Hi jmishal !

I feel that what sort of tools might be a good choice to use can depend on how much the situation you wish to handle can change over time.
if the structure of the HTML and XML files that you wish to process is fairly fixed, but just the data values inside change somewhat, then
using gawk from a bash script might be good enough. If the HTML classes, or XML tags can change, then tools that understand the structure
of HTML and XML might be better choices.

Just as an example of what could be done if the structure of the HTML and XML files is fairly fixed, I banged something together with gawk.

do_simple_mods.gawk:
Code:
BEGIN   {
            html_line[0] = "" ;
            html_lines = 0 ;

            url[0] = "" ;
            url_lines = 0 ;
            small_thumb[""] = "" ;

            disabled[0] = 0 ;
            thumb[0] = "" ;
            replacements = 0 ;

            file_type = "html" ;
        }


BEGINFILE   {  if (  index( FILENAME ,  "gawk" )  ==  0  )  {  file_type = substr(  FILENAME ,  index( FILENAME ,  "." ) + 1  ) ;  }  }

ENDFILE     {}


/class="disable-lesson"/  {  ++html_lines ;  html_line[html_lines] = $0 ;  ++replacements ;  disabled[replacements] = NR ;  next ;  }

/class="thumb"/  {  ++html_lines ;  html_line[html_lines] = $0 ;  split( $0 ,  pieces ,  /\"/  ) ;  thumb[replacements] = pieces[4] ;  next ;  }

/<url>/  {  ++url_lines ;  split( $0 ,  pieces ,  /[\<\>]/  ) ;  url[url_lines] = pieces[3] ;  next ;  }

/<thumbnail_small>/  {  ++small_thumbs ;  split( $0 ,  pieces ,  /[\<\>]/  ) ;  small_thumb[ pieces[3] ] = url_lines ;  next ;  }

{  if (  file_type  ==  "html"  )  {  ++html_lines ;  html_line[html_lines] = $0 ;  }  }

END {
        replacing = 1 ;

        for (  html_line_num = 1 ;  html_line_num  <=  html_lines ;  ++html_line_num  )
        {
            if (  html_line_num  !=  disabled[replacing]  )
                print html_line[ html_line_num ] ;
            else
            {
                print "                    <a href=\042"  url[ small_thumb[ thumb[replacing] ] ]  "\042>" ;
                ++replacing ;
            }
        }
    }
I put the html input you gave in a file named file1.html. Running the gawk program using the data files that you gave as examples as inputs to the gawk program, with this command:
Code:
gawk -f do_simple_mods.gawk file1.html 5510084.xml 5510900.xml 4490300.xml > file_out2.html
Here's what the gawk program put in the output file, named file_out2.html:
Code:
<html>
<div class="card" title="xxx1">
            <div class="card-header" role="tab" id="">
                    <a href="https://example.com/xxxx/5510084.html">
                        <div class="row">
                            <div class="col-9 text-left d-flex align-items-center">
                                <strong>1</strong>
                                <img class="thumb" src="https://example.com/video/6772.jpg" alt="learn">
                                <span class="session-title" >xx1</span>
                            </div>
                            <div class="col-3 text-center text-md-right">
                                <img src="../app/images/clock.png" alt="clock">
                                <span class="text-bold-500 fz-13">2 min</span>
                            </div>
                        </div>
                    </div>
                                </div>
        </div>

        <div class="card" title="xxx2">
            <div class="card-header" role="tab" id="">
                    <a href="https://example.com/xxxx/5510900.html">
                        <div class="row">
                            <div class="col-9 text-left d-flex align-items-center">
                                <strong>2</strong>
                                <img class="thumb" src="https://example.com/video/6733.jpg" alt="learn">
                                <span class="session-title" >xxx2</span>
                            </div>
                            <div class="col-3 text-center text-md-right">
                                <img src="../app/images/clock.png" alt="clock">
                                <span class="text-bold-500 fz-13">2 min</span>
                            </div>
                        </div>
                    </div>
                                </div>
        </div>

        <div class="card" title="xxx3">
            <div class="card-header" role="tab" id="">
                    <a href="https://example.com/xxxx/4490300.html">
                        <div class="row">
                            <div class="col-9 text-left d-flex align-items-center">
                                <strong>3</strong>
                                <img class="thumb" src="https://example.com/video/6222.jpg" alt="learn">
                                <span class="session-title" >xxx3</span>
                            </div>
                            <div class="col-3 text-center text-md-right">
                                <img src="../app/images/clock.png" alt="clock">
                                <span class="text-bold-500 fz-13">5 min</span>
                            </div>
                        </div>
                    </div>
                                </div>file
        </div>
</html>
IF I'm thinking correctly, and IF I understood what you wanted, it seems to be almost identical to the desired output you gave as an example, apart from "whitespace", and it actually did replace the "disable-lesson" "div" element with an "a" element, rather than inserting the "a" element, after the "div" element. In the example output you gave, inserting an "a" element after the "div" of "disable-lesson" class appeared to be an error in the example output.

HTH.
First of all, thank you so much for this effort. In fact, my issue is to create a script that automatically searches and replaces similarly, What you just mentioned the gawk script is to replace in case if I know that the image ID are exists in certain of HTML files. but in real mode I have more than 6,000 XML files and about 3000 HTML files. I can't guess where there are similarities id or matching in the html files.
 
Old 09-13-2019, 06:36 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,078

Rep: Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900
And have you even bothered to investigate the XML based tools mentioned ?. Your data, your responsibility.
 
Old 09-13-2019, 09:20 PM   #9
rigor
Member
 
Registered: Sep 2011
Posts: 280

Rep: Reputation: Disabled
jmishal,

Are you saying that your focus is more about how to find which XML files contain the information that needs to be replaced in a specific HTML file, rather than how to replace the text in the HTML files?

IF that is the case, then it sounds as if you might want to find all the XML files, and create a list of URL's in the url elements of the XML files, versus the URL's of the pages to which they correspond. Then find all the HTML files, and using the list you created, replace the class="disable-lesson" div lines with an 'a' element containing the URL from the XML url elements, corresponding to the class="thumb" 'img' elements in the HTML files. If so, then you might want to use a bash script something like this:
Code:
#!/bin/bash


find . -name '*.xml'  -exec egrep '(\<url\>)|(\<thumbnail_small\>)' {} \;  |  sed -E 's/<[\/\_a-z]+>//g'  |  \
(
    declare -A urls

    read a_url

    while [[  $?  -eq  0  ]]
        do
             
            read thumbnail_small
            
            urls[$thumbnail_small]=$a_url
            
            read a_url
           
        done

    # BEGIN:  replace the code in this block with code to find HTML files
    #         and use the array of thumbnail urls versus page urls, to replace
    #         the class="disable-lesson" div in the HTML files.
    
        # For this example, just display the contents of the associative urls array.
    
        for  thumbnail in ${!urls[@]}
            do
                echo "For an HTML file section with an 'img' element having class='thumb' and src='$thumbnail', replace 'div' element having class='disable-lesson' with 'a' element having href='${urls[$thumbnail]}'"
            done

    # END
)
I moved each of the sample XML files I had created from your original example, into its own sub-directory; then ran that bash script, which produced this output:
Code:
For an HTML file section with an 'img' element having class='thumb' and src='https://example.com/video/6772.jpg', replace 'div' element having class='disable-lesson' with 'a' element having href='https://example.com/xxxx/5510084.html'
For an HTML file section with an 'img' element having class='thumb' and src='https://example.com/video/6733.jpg', replace 'div' element having class='disable-lesson' with 'a' element having href='https://example.com/xxxx/5510900.html'
For an HTML file section with an 'img' element having class='thumb' and src='https://example.com/video/6222.jpg', replace 'div' element having class='disable-lesson' with 'a' element having href='https://example.com/xxxx/4490300.html'
HTH.
 
Old 09-15-2019, 01:49 AM   #10
jmishal
LQ Newbie
 
Registered: Jun 2008
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rigor View Post
jmishal,

Are you saying that your focus is more about how to find which XML files contain the information that needs to be replaced in a specific HTML file, rather than how to replace the text in the HTML files?

IF that is the case, then it sounds as if you might want to find all the XML files, and create a list of URL's in the url elements of the XML files, versus the URL's of the pages to which they correspond. Then find all the HTML files, and using the list you created, replace the class="disable-lesson" div lines with an 'a' element containing the URL from the XML url elements, corresponding to the class="thumb" 'img' elements in the HTML files. If so, then you might want to use a bash script something like this:
Code:
#!/bin/bash


find . -name '*.xml'  -exec egrep '(\<url\>)|(\<thumbnail_small\>)' {} \;  |  sed -E 's/<[\/\_a-z]+>//g'  |  \
(
    declare -A urls

    read a_url

    while [[  $?  -eq  0  ]]
        do
             
            read thumbnail_small
            
            urls[$thumbnail_small]=$a_url
            
            read a_url
           
        done

    # BEGIN:  replace the code in this block with code to find HTML files
    #         and use the array of thumbnail urls versus page urls, to replace
    #         the class="disable-lesson" div in the HTML files.
    
        # For this example, just display the contents of the associative urls array.
    
        for  thumbnail in ${!urls[@]}
            do
                echo "For an HTML file section with an 'img' element having class='thumb' and src='$thumbnail', replace 'div' element having class='disable-lesson' with 'a' element having href='${urls[$thumbnail]}'"
            done

    # END
)
I moved each of the sample XML files I had created from your original example, into its own sub-directory; then ran that bash script, which produced this output:
Code:
For an HTML file section with an 'img' element having class='thumb' and src='https://example.com/video/6772.jpg', replace 'div' element having class='disable-lesson' with 'a' element having href='https://example.com/xxxx/5510084.html'
For an HTML file section with an 'img' element having class='thumb' and src='https://example.com/video/6733.jpg', replace 'div' element having class='disable-lesson' with 'a' element having href='https://example.com/xxxx/5510900.html'
For an HTML file section with an 'img' element having class='thumb' and src='https://example.com/video/6222.jpg', replace 'div' element having class='disable-lesson' with 'a' element having href='https://example.com/xxxx/4490300.html'
HTH.
I would like to thank you very much for the great effort you have made it, I will work on it and inform you the results soon.

thanks again
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
text files in folder and display them as links on html page using AWK eiefriends8 Linux - Newbie 12 04-26-2017 11:44 AM
web page/links links/links vendtagain Linux - Newbie 2 09-19-2009 08:13 PM
Transforming XML to HTML: how do I replace &apos; with ' vasudevadas Programming 3 08-20-2007 09:41 AM
Search & Replace Technique to Fix html HREFs w/o html extension donv2 Linux - Newbie 1 01-30-2007 11:59 PM
links (hard links and soft links..) sachitha Programming 1 08-10-2005 12:10 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration