File: get-p-options

package info (click to toggle)
wiggle 0.6-6
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,292 kB
  • ctags: 130
  • sloc: ansic: 2,242; sh: 920; makefile: 86
file content (8 lines) | stat: -rw-r--r-- 279 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
#!/bin/sh
#
# make sure all p commands are in the help file

sed -n -e '/^case/,/^esac/p' p | grep ')$' | grep -v '(' |
  tr '\011' '@' | grep -v '@' | tr -cs '[A-Za-z0-9]' '\n' | sort > /tmp/p.cmds
sed -n -e '/^[a-z]/p' p.help | sort > /tmp/p.hlp
comm -3 /tmp/p.cmds /tmp/p.hlp