DRAWFILE
What goes to the computer mailboxes of all members of the office mailgroup is:
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
DRAWKYB
| ESC | ! | @ | # | $ | % | ^ | & | * | ( | ) |___| + | ~ | | |
| | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | ` | \ |
| TAB | Q | W | E | R | T | Y | U | I | O | P | { | } |DEL|
| | | | | | | | | | | | [ | ] |RUB|
|CTRL|CAPS| A | S | D | F | G | H | J | K | L | : | " |RETURN|
| |LOCK| | | | | | | | | | ; | ' | |
| SHIFT | Z | X | C | V | B | N | M | < | > | ? | SHIFT |LIN|
| | | | | | | | | , | . | / | |FED|
| |
| SPACE BAR |
LOOP1
LOOP2
$PROMPT$
AANVANG
The standard input can be redirected.
By redirecting the input, you are telling the command
interpreter (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
input to come from
For example
|
|
|
|
:
-
-
>
mail
|
|
:
-
-
-
:
|
<
|
|
:
-
-
-
-
-
-
-
-
|
invitation
All you need to do is press the input redirection symbol, < .
Press both lit buttons on your keyboard now.
TYPSYM
Please review your keyboard arrangement, so
next time you have no problems typing < :
CONTINUE
SHIFT
<
,
No, you didn't hold the SHIFT key down.
Please try again, and be sure to hold the SHIFT key down
WHILE you press the < key.
No, you typed the symbol for redirecting OUTPUT.
Please try again, and be sure to hold the SHIFT key down
WHILE you hold press the < key.
No, you used the wrong key.
Please try again, and be sure to hold the SHIFT key down
WHILE you press the < key.
No, you used the CONTROL key instead of the SHIFT
key.
Please try again, and be sure to hold the SHIFT key down
(not the CONTROL key) while you press the < key.
You entered some sort of CONTROL key, but I wanted you to
use the < key.
Please try again, and be sure to hold the SHIFT key down
while you press the < key.
Sorry, UNIX did not know what that was. Please pay attention.
Look at the keyboard on your screen. Press BOTH the
lit keys at the same time.
DOREDIR
SHIFT
<
,
Very good. You are now ready to proceed.
PRACRED1
Input redirection practice, - 1.7.2.0.1
Let us use input redirection to mail the contents
of the message in the file invitation to all
office personnel. Please enter the command
to mail to office with input from 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 on the terminal!
$PROMPT$