Files
mercury/tools/appears
Zoltan Somogyi b221d25b52 <overview or general description of changes>
Estimated hours taken: 1

<overview or general description of changes>

<directory>/<file>:
	<detailed description of changes>
1996-05-13 05:10:23 +00:00

21 lines
296 B
Bash
Executable File

#!/bin/sh
# See if the first argument appears among the following arguments.
# If yes, return true (0), otherwise, return false (1).
if test $# -lt 1
then
echo "Usage: appears word word1 ..."
exit 2
fi
word=$1
shift
for arg in "$@"
do
if test "$word" = "$arg"
then
exit 0
fi
done
exit 1