tr_mvlnk -- modify tags in html files with perl commands.
USAGE: tr_mvlnk [-hacv] perlexpr html-files
tr_mvlnk provides the tags in html code in \$_ to perlexpr and modifies the tags according to the perlexpr. The original files are backed-up to filename.bak
Spaces, tabs and newline are removed from the tag and replaced by just one space. This is to make it easier for the perlexpr.
-a include all tags. Normally only tags that contain links (e.g <a href=... and not <p> </p>) are passed to the perlexpr. That is all tags with href=, src= or background=. With this option set you can modify any tag.
-h this help
-c includes comments. Normally comment tags are not passed to perlexpr. With this option set you can modify also comments.
-v verbous messages about html errors.
Change links to tldp.org/linuxfocus to linuxfocus.org: tr_mvlnk 's|tldp.org/linuxfocus|linuxfocus.org|' index.html
xlnk is part of the HTML::TagReader package and was written by Guido Socher
To install HTML::TagReader, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::TagReader
CPAN shell
perl -MCPAN -e shell install HTML::TagReader
For more information on module installation, please visit the detailed CPAN module installation guide.