#!/usr/bin/env bash # xhtml2metadata.sh - a front-end to xhtml2metadata.pl # Eric Lease Morgan # (c) University of Notre Dame; distributed under a GNU Public License # April 25, 2024 - first documentation but probably written about a month ago # configure WEBSITE='./' PATTERN='*.html' XHTML2METADATA='./bin/xhtml2metadata.pl' HEADER='carrel\tidentifier\tcreator\ttitle\tdate\tdescription\tsubjects\tprovenance' # initialize output echo -e $HEADER # find all XHTML files and process each INDEXES=( $( find $WEBSITE -mindepth 2 -maxdepth 2 -name $PATTERN ) ) for HTML in ${INDEXES[@]}; do echo $HTML >&2 $XHTML2METADATA $HTML done # fini exit