File: get-p-options

package info (click to toggle)
wiggle 1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 4,068 kB
  • sloc: ansic: 13,410; sh: 1,179; makefile: 170
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