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