I'm trying to build a sitemap to help cleanup a site that I just took over (as an unpaid volunteer). I have a text file that has a list of all the HTML files that are on the site including their relative directories. Sample:
Code:
./temp_widecol_del.htm
./dogspf.htm
./indextest.htm
./kmtemp/date4.php
./kmtemp/phpinfo.php
./fm/index.html
./fCMSTestGallery/upgrade.php
./fCMSTestGallery/index.html
./fCMSTestGallery/libadmin.php
./fCMSTestGallery/iontest/ioncube-loader-helper.php
./fCMSTestGallery/iontest/ioncube-encoded-file.php
Is there any combination of ls, more, grep (or others) that I can use that would produce something like:
Code:
./indextest.htm
<a href="http://...">Link</a>
<a href="http://...">Link2</a>
./index.htm
<a href="http://...">Link3</a>
<a href="http://...">Link4</a>
OR
Is there any (preferably OSS) programs that might do something similar? Thanks in advance!