File: list-man-pages.sh

package info (click to toggle)
libnvme 1.16.1-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,020 kB
  • sloc: ansic: 35,812; perl: 1,834; sh: 475; python: 194; cpp: 64; makefile: 55
file content (16 lines) | stat: -rwxr-xr-x 354 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
# SPDX-License-Identifier: LGPL-2.1-or-later

file=$1

for func in $(sed -n 's/ \* \([a-z_][a-z_0-9]*\)() -.*/\1/p' $file); do
	echo ${func}
done

for struct in $(sed -n 's/ \* struct \([a-z_][a-z_0-9]*\) -.*/\1/p' $file); do
	echo ${struct}
done

for enum in $(sed -n 's/ \* enum \([a-z_][a-z_0-9]*\) -.*/\1/p' $file); do
	echo ${enum}
done