What does the command “ $who | sort ‚logfile > newfile‚do?
The input from a pipe can be combined with the input from a file . The trick is to use the special symbol “-“ (a hyphen) for those commands that recognize the hyphen as std input.In the above
It reads the standard input and sends it to the standard output while redirecting a copy of what it has read to the file specified by the user.
Latest Answer: tee - replicate the standard output Syntax:-tee [ -ai ] [ file ... ] -a Append the output to the files rather than ...
1. Output of who should be displayed on the screen with value of total number of users who have logged in displayed at the bottom of the list.2. Output of ls should be displayed on the screen and from
Latest Answer: 1. who | tee /dev/pts/4 | cut -d " " -f 1 | uniq | echo "no of users logged in are `wc -l`" who - displays all the loged in users tee - pass the who output to terminal output /dev/pts/4 and also to cut command. where /dev/pts/4 is the ...
View page << Previous 4 5 6 7 [8]

Go Top