parallel
[Top][All Lists]
Advanced

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

Re: How can I do replacement strings with an arg-file?


From: Ole Tange
Subject: Re: How can I do replacement strings with an arg-file?
Date: Sun, 17 Dec 2017 03:08:37 +0100

On Fri, Dec 15, 2017 at 8:04 PM, Dew, James (NRCAN/RNCAN)
<james.dew@canada.ca> wrote:

> I'm trying to use some replacement strings inside an arg-file and unable to
> do so, is there something I'm missing?

You cannot do that. The replacement strings only work on the command line.

> In my command file I have many rows of
>
> ./mkcontrol.py --lat=50.1848576262 --lon=-67.4749590421
> --timestamp=2007-07-23T20:00 --count=11 --hours=20 --id=2007001 --number={#}
>
> Which are fed to parallel:
>
> parallel --sshloginfile x --workdir /hysplit4/parallel/ --basefile metdata/
> --basefile mkcontrol.py --basefile SETUP.CFG --return tdump/{#}/ --return
> kml/{#}/ -a commands
:
> Is there something I can do, to do the same replacements in the arg-file as
> on the command line?

You could remove the {#}:

  ./mkcontrol.py --lat=50.1848576262 --lon=-67.4749590421
--timestamp=2007-07-23T20:00 --count=11 --hours=20 --id=2007001
--number=

and then add it on the command line:

  parallel ... -a commands {}[#}


/Ole



reply via email to

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