On Mon, Oct 30, 2023 at 2:22 AM Ole Tange wrote:
> Is there an easy way to go from:
>
> parallel echo {2} {1} ::: A-BB C-DD ::: E-FF G-HH
>
> to this (where I have to calculate what number {4} would get):
>
> parallel --match '((.)-(..))' \
> echo {4} {1} {3} ::: A-BB C-DD ::: E-FF G-HH
>
> May
Hi Ole,
> I am really happy about the {= =} construct (thanks Malcolm - it was a
> brilliant
> idea).
You're most welcome. I use it myself all the time 😉
> But it is a bit cumbersome to use that when a regexp would just match.
>
> echo 2023-10-29 |
> parallel echo 'Year={=s/()-..-../$1/