Re: Distributing work to local and remote computers

2017-04-19 Thread Ole Tange
On Wed, Apr 19, 2017 at 12:14 AM, Eric Geoffroy wrote: >> That failed because *.mp4 was not expanded by the shell and GNU >> Parallel quotes special chars so it will also not expand *.mp4. >> >> Try this instead: >> >> cd '/Volumes/Cinera/SBO- Video/Python Videos >> 9780134745916/Safari/978013474

Re: Distributing work to local and remote computers

2017-04-19 Thread Eric Geoffroy
> So this fails, right?: > cd ... > parallel --workdir . -S : file ::: *.mp4 That fails. (but not because of parallel) Here are some example file names: 00_00_00.mp4 00_01_00.mp4 00_01_01.mp4 I decided to change the command I'm testing with from 'file' to 'basename'. Lo and behold it works. So t

output of parallel pipe to another grep

2017-04-19 Thread Asif Iqbal
Hi I have multiple compressed files that I need to run grep against. I am trying to find 'foo', 'bar' and '192.168.1.100' against all the compressed log files. This will work? ls 201612*.gz | parallel zgrep foo {} | grep bar | grep 192.168.1.100 Thanks for such an awsome tool! -- Asif Iqbal P