first check-in of feisty meow codebase. many things broken still due to recent
[feisty_meow.git] / scripts / files / find_non_owned.sh
1 #!/bin/bash
2 if test $# = 0; then
3   echo $(basename $0): needs at least one directory name as a parameter.
4   \exit 1;
5 fi;
6 export outfile="$(mktemp "$TMP/zz_findertmp.XXXXXX")"
7 echo "These files are not self-owned:" >$outfile
8 for i; do
9   find $i ! -user $USER >>$outfile
10 done
11 cat $outfile
12   # apparently this utility is supposed to echo to standard out.
13 rm $outfile
14