1O=$1 2shift 3objtype=$1 4shift 5 6ls -p ../$objtype/*.[cs] >[2]/dev/null | sed 's/..$//' > /tmp/reduce.$pid 7# 8# if empty directory, just return the input files 9# 10if (! ~ $status '|') { 11 echo $* 12 rm /tmp/reduce.$pid 13 exit 0 14} 15echo $* | tr ' ' \012 | grep -v -f /tmp/reduce.$pid | tr \012 ' ' 16rm /tmp/reduce.$pid 17