summaryrefslogtreecommitdiff
path: root/jh-list-commands.sh
blob: 290b4e1ed2ea03c438c6dd2cde014b84b8bf058f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
. /usr/bin/jh

if [[ $# > 0 ]]; then
	usage
	exit 1
fi

for cmd_help in "$JH_PATH"/*.help.txt; do
	cmd=`echo "$cmd_help"|sed -r 's|.*/jh-(.*)\.help\.txt$|\1|'`
	help=`sed -n 2p "$cmd_help"`
	printf "%-20s  %s\n" "$cmd" "$help"
done