DRAWFILE
Invitation
Dear Colleagues, There will be a
celebration for the announcement of the
new product. Meeting time, 12:10 PM, on
the front lawn, next to the assembly plant.
UTERMINAL
TERMINAL
NEXT
$V1$
PAUSE
ENCORE5
ENCORE
BOX
ILLUSTRATION
LOOP1
LOOP2
$PROMPT$
AANVANG
You can redirect the standard input.
By redirecting the input, you are
telling the Shell that instead of reading
the data from your keyboard, it should
read it from the specified input file!
The symbol used for input redirection is:
<
To use a file as input for a command,
all you do is tell UNIX
command
^
|
|
The command
you want
<
^
|
|
The < symbol
for redirection
filename
^
|
|
The name of the
file you want the
output to go into
for example
V
|
|
|
:
-
-
>
mail
V
|
:
-
-
-
:
V
<
V
|
:
-
-
-
-
-
-
-
-
V
invitation
Let us practice using the < facility by sending the contents
of the file invitation to all office personnel.
Please enter the command to mail to office the
file invitation.
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type mail office with input from invitation
Please type mail office < invitation
You will be helped this time.
$PROMPT$
FORGET1
mail office < invitation
DRAWRED1
Observe the result below the terminal.
$PROMPT$