File: manpage.sh

package info (click to toggle)
lsof 4.99.4%2Bdfsg-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,924 kB
  • sloc: ansic: 50,680; sh: 8,351; makefile: 1,194; perl: 940; awk: 214
file content (8 lines) | stat: -rwxr-xr-x 282 bytes parent folder | download
1
2
3
4
5
6
7
8
#!/bin/sh
echo "# Manpage" > manpage.md
echo "\`\`\`manpage" >> manpage.md
# nroff: render manpage
# col: -b remove backspace, -x use spaces instead of tabs
# cat: -s remove consecutive blank lines
nroff -man ../lsof.man | col -bx | cat -s >> manpage.md
echo "\`\`\`" >> manpage.md