Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

combine xargs and eof

6 views
Skip to first unread message

giuseppe...@gmail.com

unread,
Oct 17, 2012, 12:55:07 PM10/17/12
to
Hi
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
EOF

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

any ideas?
thanks Giuseppe
0 new messages