#!/bin/bash # xml2marc.sh - brain-dead batch conversion of MARCXML to MARC # Eric Lease Morgan # March 29, 2016 - first cut # configure XML2MARC="/Users/eric/Desktop/authorities/bin/xml2marc.pl" DIRECTORY=$1 # process each xml file in the given DIRECTORY for file in $DIRECTORY/*.xml; do printf "\t$file\r" >/dev/stderr $XML2MARC $file done