Thanks, that is exactly what I was looking for. My problem was that I was
looking at the man page on a host that had version 20160122 so I didn't
think this was possible. Thankfully, my prod env has a more recent version
and the man page makes the options to --results quite clear. The only thing
I could recommend for improvement would be that the section on replacement
strings gives "my_{}" as an example, but it may be worth adding another
example (perhaps the ones you gave in this thread) below the existing
examples.

On Wed, Aug 5, 2020 at 5:42 AM Ole Tange <o...@tange.dk> wrote:

> On Sat, Aug 1, 2020 at 2:48 AM Daniel LaFlamme
> <daniel.lafla...@gmail.com> wrote:
>
> > Is there a way to change the behavior of how those subdirectories are
> named? Either a sequential number is fine, or something else?
>
> In version >= 20170122 you can use replacement strings:
>
>     parallel --joblog v.1.log --results 'mydir/{= s:.*class:: =}' ::::
> v.1.sh
>     parallel --joblog v.1.log --results '{#}/' :::: v.1.sh
>
> See 'man parallel' under '--results' for more details.
>
> /Ole
>

Reply via email to