bug-bash
[Top][All Lists]
Advanced

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

Re: Parallelism a la make -j <n> / GNU parallel


From: Greg Wooledge
Subject: Re: Parallelism a la make -j <n> / GNU parallel
Date: Mon, 14 May 2012 08:31:25 -0400
User-agent: Mutt/1.4.2.3i

On Fri, May 11, 2012 at 11:57:33PM +0200, Ole Tange wrote:
> Example from the man page:
> 
>        Run one gzip process per CPU core. Block until a CPU core
> becomes available.
> 
>         for i in `ls *.log` ; do
>            echo $i
>            sem -j+0 gzip $i ";" echo done
>          done
>          sem --wait

If this example is in the man page, then it should be fixed:

        for i in *.log ; do
           echo "$i"
           sem -j+0 gzip "$i" ";" echo done
        done
        sem --wait



reply via email to

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