yes(1) yes(1)
NAME
yes - prints string repeatedly
SYNOPSIS
yes [string]
DESCRIPTION
yes repeatedly outputs "y", or if a single string argument is given,
string is output repeatedly. The command will continue indefinitely
unless aborted.
yes is useful in pipes to commands that prompt for input and require a
"y" response for a yes. In this case, yes terminates when the command
that it pipes to terminates, so that no infinite loop occurs.
EXAMPLES
The checkin-list file contains a list comprising a number of file
names, which are to be checked into SRCS administration using the
interactive command ci. The easiest way of doing this is to use a
shell script in which the checkin-list is read and the required input
"y" is retrieved using the yes command. The script might appear as
follows:
for i in `cat checkin-list`; do
echo $i
yes | ci -Nv543a -m"info-text" $i
done
Page 1 Reliant UNIX 5.44 Printed 11/98