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