Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

use output of pipe xargs

Just use the pipe output of a command as input with xargs as follows:
ls | xargs -I {} echo "File " {} "stored in current folder" > files_list
Command above gets files in a folder and save echo output into a file
 
PREVIOUS NEXT
Tagged: #output #pipe #xargs
ADD COMMENT
Topic
Name
7+8 =