Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

command to convert standard input to arguments for a piped command

command | xargs command

# e.g to remove files outputed by the cat command
cat dir1 | xargs rm
 
PREVIOUS NEXT
Tagged: #command #convert #standard #input #arguments #piped #command
ADD COMMENT
Topic
Name
1+6 =