Input and Output Redirection
The input and the output of a command can be concurrently redirected.
Practice 1
The following instance describes the concurrent redirection of both the input and the output.
# sort < names > sort_names
# cat sort_names
ajay pts/3 May 17 11:27 (80.0.0.98)
oracle pts/2 May 17 11:27 (80.0.0.98)
root pts/0 May 17 11:27 (80.0.0.98)
sunil pts/1 May 17 11:27 (80.0.0.98)
In this above example, the sort command takes its input from the file names and its output is redirected to the file sort_names.