First page Back Continue Last page Graphics
Redirection
normally input from keyboard and output to screen.
- $ countlines
- Hello There
- Good bye There
- ctl-D
- Input contained 2 lines
Redirect input from a file and output to a file.
- $ countlines < linestocount > report
These redirect cin and cout.