What is the difference between pipe and xargs?

Answer Posted / shh

xargs command
Build and execute command lines from standard input

find . -type f -mtime -1 -print | xargs ls

Pipe is a technique to use for joining two/more commands
(one command output as input to other command ..so on
| is a symobol for pipe)

ls -al | more

Is This Answer Correct ?    14 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are some command words?

561


What are file commands?

650


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

593


How do I use grep to search for a file?

580


What is the use of egrep command in unix?

624






How do I delete files from command prompt?

549


What command will change your prompt to myprompt?

699


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

759


What is grep short for?

556


What is the unix command to confirm a remote host is alive or not?

579


What do chgrp command do?

590


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

643


What is the pipe command?

574


Is it inbetween or in between?

578


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

678