Monday, 11 November 2013

What is the output of this command? $who | sort –logfile > newfile

In this command, the output from the command “who” becomes the input to the “sort” command. At the same time, “sort” opens logfile, arranges it together with the output from the command “who”, and places the final sorted output to the file newfile.

No comments: