#!/bin/sh## Program: count## Synopsis: Count the number of lines of input on stdin and test that it# matches the specified number.## Syntax: count <number>set-e
set-u
input_lines=`wc-l`if["$input_lines"-ne"$1"];thenecho"count: expected $1 lines and got ${input_lines}."exit1fiexit0