What is the use of pipes?
Answers were Sorted based on User's Feedback
Answer / shilpa
Output of one command can be used as input for other
command. Hence execution time will be reduced
Is This Answer Correct ? | 15 Yes | 0 No |
Answer / abinash
its is used to sned the output of one unix command as
inpiut to another unix command.
e.g.
ps -aef | grep <process name>
Is This Answer Correct ? | 4 Yes | 1 No |
Pipe command is used sending one command's output to other command input
ex:- ls -l | wc -l
here ls -l will show details of files available and wc -l will show how many rows(total no of rows) the previous command diaplayed
Is This Answer Correct ? | 0 Yes | 0 No |
What is the command to view process running?
How we will execute previous command in vi editor?
what is the functionality of kernel in unix architecture?
How do I search a whole word in vim?
29. How to display top 10 users Who | head -10 | wc –w
Which unix command to make a new directory?
What is the use of pipes?
How does a user get the current date, time in UNIX?
what are filters?
What is grep short for?
What is the first character of the output in ls l command?
Hi All, Can you please let me know how to grep for a particular pattern in unix. I want to print the dates from the file exp.txt. the date pattern is DD:MM:YYYY, I just want to print all the dates from the file exp.txt.
8 Answers Concentrix, IBM, Symantec, TCS,