Add heuristic to take shortcut when too slow.
[wiggle/upstream.git] / get-p-options
blobdec5352f19230fbdbbd5a3d5d02a4bdffe5eeb6e
1 #!/bin/sh
3 # make sure all p commands are in the help file
5 sed -n -e '/^case/,/^esac/p' p | grep ')$' | grep -v '(' |
6 tr '\011' '@' | grep -v '@' | tr -cs '[A-Za-z0-9]' '\n' | sort > /tmp/p.cmds
7 sed -n -e '/^[a-z]/p' p.help | sort > /tmp/p.hlp
8 comm -3 /tmp/p.cmds /tmp/p.hlp