You can use `--rpl` to define your own replacement string and then use that both for `mkdir` and `cp`.
ls *.output | parallel --rpl '{dir} s/\.output$/_dir/' 'mkdir {dir} && cp {} {dir}'
You can use `--rpl` to define your own replacement string and then use that both for `mkdir` and `cp`.
ls *.output | parallel --rpl '{dir} s/\.output$/_dir/' 'mkdir {dir} && cp {} {dir}'