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.