diff --git a/findcomment b/findcomment new file mode 100644 index 0000000..b02ccaf --- /dev/null +++ b/findcomment @@ -0,0 +1,9 @@ +#!/bin/bash +source /usr/local/etc/sudo-comment.conf +if [ $# -eq 0 ]; then + less "$commentlog" +elif [ $# -eq 1 ]; then + cat "$commentlog" | grep -A5 "$1" | less +else + echo "Too many arguments." +fi