What is the difference between pipe (|) and tee command in unix

Answer Posted / thina

ls |wc-l |tee 1.txt
step 1: listing of file and folders
step 2: counting No of Lines
step 3: tee command getting output from above steps and
stres in the file

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the general commands in using unix os for a beginner?

575


What do know about tee command and its usage?

580


How do you grep a case insensitive?

532


Can you explain a little bit about command substitution?

595


How do I clear my terminal history?

573






Name the unix command to find how many days the server has been up.

592


Why is grep called grep?

771


What are the unix commands?

541


Enlist some filename manipulation commands in unix.

543


How do I search for a file in unix command?

539


Describe the zip/unzip command using gzip.

603


What are bash commands?

584


Describe the usage and functionality of the command rm –r * in unix?

815


What is ‘ps’ command for?

608


What is difference between grep and find command in unix?

572