Linux IO Redirection
CSE 232 - Dr. Josh Nahum
Reading:
No Readings
Redirecting I/O
|
program > x.txt
The output from the executable named program is written to the file named x.txt
program < x.txt
The input from for the executable named program is read from the file named x.txt
program | other
The output from the executable named program is redirected to be the input for the executable named other
>
<
Useful of testing programs!
Live Coding Example