Here, the contents of abc . txt are redirected to program read • exe. The user need not enter any data
through the keyboard. The entire contents of abc. txt are used as input and the same is displayed.
Here, the ' <' redirection operator is used.
Input and output can be redirected simultaneously. Here, input is taken from a file and transferred to
another file. The program acts as mediator between both the files. The following command illustrates
this process.
C> READ < ABC.TXT > ALPHA•TXT
In this process, program reads redirected data from the file abc. tx t. Also instead of displaying
output on the screen it would
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.