File: get-p-options

package info (click to toggle)
wiggle 1.0%2B20140408%2Bgit920f58a-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,872 kB
  • ctags: 752
  • sloc: ansic: 13,408; sh: 1,179; makefile: 167
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