Re: Multiple complex replacements per command?

2012-11-19 Thread Jay Hacker
You're right, those hurt my head. It's complicated. I discovered a way to do it with two parallels (haven't thoroughly tested it): $ seq 12 | parallel echo "'a {} b {}'" | parallel -tX mycmd mycmd a\ 1\ b\ 1 a\ 2\ b\ 2 a\ 3\ b\ 3 mycmd a\ 4\ b\ 4 a\ 5\ b\ 5 a\ 6\ b\ 6 mycmd a\ 7\ b\ 7 a\ 8\ b\ 8

Re: Multiple complex replacements per command?

2012-11-19 Thread Ole Tange
On Mon, Nov 19, 2012 at 7:18 PM, Jay Hacker wrote: > You're right, those hurt my head. It's complicated. It often is :-) > I discovered a way to do it with two parallels (haven't thoroughly tested > it): > > $ seq 12 | parallel echo "'a {} b {}'" | parallel -tX mycmd A bit shorter: seq 12 |

Re: Combining --pipe and --shebang options

2012-11-19 Thread Ole Tange
On Sun, Nov 18, 2012 at 3:13 PM, Ole Tange wrote: > On Fri, Nov 16, 2012 at 2:13 PM, Michel Samia > wrote: > >> is it possible to combine --shebang and --pipe options? > > It ought to be. And your script shows a good reason why. But currently > it seems you cannot. > > I have created this bugrepo