#! /usr/bin/env bash # TODO # BUG! works with . but not with full path EXP_ARGS=1 LIST=~/.wiki_trusted_authors if [ "$1" = "--help" -o "$1" = "-h" -o $# -lt $EXP_ARGS ] then echo "Search for non trust edits in PmWiki" echo "Usage: $0 PmWikiPath" echo "(note that the list of trusted authors is in $LIST)" exit fi grep author: $1/* | grep -v diff: | grep -v -f $LIST # seems to be more interesting to delegate that to the user #| sed -e "s/:.*//" | sort | uniq