3 # checker_report: runs the checker utility against all files in a directory,
4 # in such a way that the file count can be very high without blowing its
5 # mind, and without any extra headers in the report.
7 source $FEISTY_MEOW_SCRIPTS/core/functions.sh
10 outfile="$1"; shift # optional parm.
12 if [ -z "$dirname" ]; then
13 echo "This script requires one directory on which to make a checker report."
17 if [ -z "$outfile" ]; then
18 outfile="$HOME/checker_report_$(hostname)_$(date_stringer).txt"
21 if [ -f "$outfile" ]; then
25 temp_file_list="$(mktemp /tmp/file_list_temporary.XXXXXX)"
27 find "$dirname" -type f >"$temp_file_list"
28 ###-exec echo \"{}\" ';'
30 checker -q -b "$line" 2>&1 >>"$outfile"
31 done <"$temp_file_list"