parallel
[Top][All Lists]
Advanced

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

Replacement strings


From: Ole Tange
Subject: Replacement strings
Date: Tue, 3 Jun 2014 23:55:42 +0200

Currently GNU Parallel has 6 replacement strings:

{} = A/B/C.D.E
{.} = A/B/C.D
{#} = Job number
{%} = Job slot
{//} = A/B
{/} = C.D.E
{/.} = C.D

(Plus the numbered {1} and {-1}).

But there has been a demand for removing two extensions and a
replacement string for the removed extension. If these should be
implemented, I would like to have a more general syntax. It could be
something like:

{+.} = E
{+/} = A/B
{..} = A/B/C
{+..} = D.E

{} = {.}.{+.} = {+/}/{/} = {+/}/{/.}.{+.} = {..}.{+..}

The idea is here that '+' matches the opposite of the non-+ version
(except for the . or / separating). {//} would be the only redundant
string (in the new syntax that is {+/}).

If it is easy to implement then {...} {/..} {/...} and the +-versions
should work, too.

There would still no replacement string for 'A', 'B' or 'D'.

Better ideas for syntax? Is there any good existing syntax for
replacements that would make sense? E.g. FEX
http://www.semicomplete.com/projects/fex/


/Ole



reply via email to

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