mirror of
https://github.com/opnsense/src.git
synced 2026-03-21 10:20:09 -04:00
23 lines
452 B
Bash
Executable file
23 lines
452 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
|
|
MANDIR=/usr/share/man
|
|
TMPDIR=/usr/share/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
|