summaryrefslogtreecommitdiffstats
path: root/src/mwi
blob: 3b52feb0a0e071e372aaf72cb2df12ca27502f8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# test which words in all caps end a NAME section in a (compressed) cat page
#
# Found so far:
#
# SYNOPSIS
# SYNOPOSIS
# SYSTEM V SYNOPSIS
# SYNTAX
# DESCRIPTION
# COMMAND
# OVERVIEW
# STRUCTURES
# INTRODUCTION
#
	for i in *
	do
		zcat $i | col -bx | sed '1,/^NAME/d; /^[A-Z][A-Z]/q' | tail -1
	done