[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: combine xargs with EOF
From: |
giuseppe . amatulli |
Subject: |
Re: combine xargs with EOF |
Date: |
Wed, 17 Oct 2012 10:52:37 -0700 (PDT) |
User-agent: |
G2/1.0 |
Sorry i was not clear,
yes my purpose is
" simply to avoid having a second file containing a bash script "
but
find . -maxdepth 1 -name '*.txt' -print0 | xargs -n 1 -P 10 bash -c 'echo
"$1" '
or
ls '*.txt' | xargs -n 1 -P 10 bash -c 'echo $1 '
do not print $1 so the argument (-n 1) is not passed inside.
any idea?
Thanks
Giuseppe
p.s. my files are all without space.