[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

combine xargs with EOF

From: giuseppe . amatulli
Subject: combine xargs with EOF
Date: Wed, 17 Oct 2012 09:49:10 -0700 (PDT)
User-agent: G2/1.0

i'm using often xargs to run process in parallel

ls *.txt | xargs -n 1 -P 10 bash myscript.sh 

where myscript.sh is (for examples of course is longer):
echo $1

i would like to perform the same operation using the EOF syntax and import the 
arguments inside the eof

I tried 

ls *.txt | xargs -n 1 -P 10 <<
echo $1

also with the option -E and -e but did not work 

any ideas?
thanks Giuseppe

reply via email to

[Prev in Thread] Current Thread [Next in Thread]