View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Wray Buntine > Alvis-Bags-0.3 > linkRedir


Annotate this POD


Open  1
View/Report Bugs


linkRedir -- rocess out the redirects and normalise links in a link file.


linkRedir [--nocase|--noclean|--gzip|--bzip2] LINK-FILE STEM


    LINK-FILE           Filename for input link file usually created by XSL
    STEM                stem for output file, several extensions read and made
    --bzip2             pipe input through 
    --gzip              pipe input through 
    --init              empty the 
F<STEM.redirect> file at startup
    --nocase            ignore case of URLs
    --noclean           don't use built-in URL cleaning
    -h, --help          display help message and exit.
    --man               print man page and exit.


Input file of links, link text and redirects. Process out the redirects and normalise links, taking two passes. This is intended as a preprocessor for linkTables(1), and the input format is found there.

First pass reads in previously assembled redirects from STEM.redirect and then filter any more from LINK-FILE. The second pass reads the links from LINK-FILE and processes out the redirects. Output processed links to STDOUT and saves all redirects in STEM.redirect. Both output files are appended to so can be applied repeatedly to incrementally build up the result files from a series of batches, though redirects read in a later batch will not be applied to earlier batches. Normalises output URIs using URI->canonical. Assumes input URIs have no embedded spaces, they must be encoded.


linkBags(1), linkMpca(1), linkTables(1), URI(3).


Wray Buntine


Copyright (C) 2005-2006 Wray Buntine

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

syntax highlighting: