Next | System Programming in Perl | 14 |
Then the shell execs /bin/ls
ls just writes to its standard output as before, but now the data goes into the file
But ls doesn't have to know or care
The shell does it all
Every program can be redirected in the same way
Next | 14 |