mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-30 15:38:06 +01:00
20 lines
415 B
Plaintext
20 lines
415 B
Plaintext
|
MANDIR=/usr/man
|
||
|
TMPDIR=/usr/man/tmp
|
||
|
|
||
|
date > $TMPDIR/greps
|
||
|
echo "Grep list: $*" >> $TMPDIR/greps
|
||
|
echo >> $TMPDIR/greps
|
||
|
|
||
|
for pattern in $*
|
||
|
do
|
||
|
echo "\n================" >> $TMPDIR/greps
|
||
|
echo "$pattern:" >> $TMPDIR/greps
|
||
|
for dir in 1 2 3 4 5 6 7 8
|
||
|
do
|
||
|
cd $MANDIR/man$dir
|
||
|
echo "cat <<'EOF' >---------------" >> $TMPDIR/greps
|
||
|
echo "Section $dir" >> $TMPDIR/greps
|
||
|
grep $pattern *.* >> $TMPDIR/greps
|
||
|
done
|
||
|
done
|