3 # Create the tg-foo.txt files which contain help for the tg-foo command.
6 echo "Usage: $0 <tgcommand>" 1>&2
11 BEGIN { incommand = 0; }
12 /^tg '"$1"'$/ { incommand = 1; next; }
13 /^~/ { next; } # Ignore the title underlines.
14 /^[^\t]/ { incommand = 0; next; }
15 { if (incommand) { print $0; } }