parallel
[Top][All Lists]
Advanced

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

Re: {//} question


From: Ole Tange
Subject: Re: {//} question
Date: Sat, 15 Oct 2011 16:48:42 +0200

On Sat, Oct 15, 2011 at 1:29 AM,  <parallel-bug@ch.pkts.ca> wrote:
> Hello again;

Please use the parallel@gnu.org mailing list. That way others may be
able to both answer your questions and learn from them, too.

> I was just exercising the code, and came across something that appears
> to be strange:
>
> # Version 20110622:
> $ parallel echo '{//}' ::: test/one test/. test/ test
> .
> test
> test
> .
>
> # Version 20110822:
> $ parallel echo '{//}' ::: test/one test/. test/ test
> test
> test
> .
> .
>
> I'm glad 'test/one' works correctly now (=test), but wouldn't it make
> sense for 'test/' to have a dirname of 'test'?

Read the manual for -k and {//} of parallel, and the man page for the
UNIX command dirname.

Then try:

  parallel -k dirname {} ::: test/one test/. test/ test

If that does not answer your question, please elaborate your question further.

/Ole



reply via email to

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