Rivoreo Source Code Repositories
src.rivoreo.one
/
vzctl
/
4303575504069cc6eb8518bd666a60fc4a56f095
/
.
/
man
/
wikitoc.sh
blob: da4fa6a12ac30c895ea88a8f846d5a235b0ebf08 [
file
] [
log
] [
blame
] [
raw
]
for
FILE
in
$
*;
do
NAME
=
$
(
echo $FILE
|
sed
's/\.\([0-9]\)$/ (\1)/'
)
HDR
=
$
(
grep
-
A1
'^\.SH NAME$'
$FILE
|
tail
-
1
|
\
sed
's/^.*\\- //'
|
sed
's/\.$//'
)
echo
"|-"
echo
"|| [[/$FILE/|$NAME]]"
echo
"|| $HDR"
done