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

Explain how to use grep command to list find the records of a file containing 10 different strings?

596


What is sed awk grep?

609


What is grep short for?

558


How do you grep recursively?

558


What is the comma to display different lines that are found when compare two files?

595






What is the size of time_t?

654


Which command can you use to find the currently running process in unix server?

590


How can we use grep command in unix?

621


Differentiate cat command from more command.

581


What is difference between grep and find command in unix?

583


What does the command '$ls | wc –l > file1' do?

684


What difference between cmp and diff commands?

727


What is nr in awk command?

610


What are some command words?

569


What are the unix commands?

560