Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Running multiple commands with xargs

cat a.txt | xargs -d $'
' sh -c 'for arg do command1 "$arg"; command2 "$arg"; ...; done' _
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Running #multiple #commands #xargs
ADD COMMENT
Topic
Name
2+1 =