#!/bin/bash echo "" echo "====" echo "Listing 'archives/HASH*/doc.xml' as indicative of no metadata in spreadsheet:" echo "====" fgrep SourceFile archives/HASH*/doc.xml \ | sed 's/<[^>]\+>//g' \ | awk '{print " " $2}' echo "" also_unknown_hash=`fgrep UnknownPlugin archives/HASH*/doc.xml | awk -F/ '{print $2}'` echo "====" echo "Listing those from above that also have no text, as idicated by presence of UnknownPlugin" echo "====" for f in $also_unknown_hash ; do fgrep SourceFile "archives/$f/doc.xml" \ | sed 's/<[^>]\+>//g' done