You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
misc/shell_scripts/wiki_untrusted_edits

16 lines
469 B

#! /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