5 echo "Grep list: $*" >> $TMPDIR/greps
10 echo "\n================" >> $TMPDIR/greps
11 echo "$pattern:" >> $TMPDIR/greps
12 for dir in 1 2 3 4 5 6 7 8
15 echo "cat <<'EOF' >---------------" >> $TMPDIR/greps
16 echo "Section $dir" >> $TMPDIR/greps
17 grep $pattern *.* >> $TMPDIR/greps