[svlug] Running a command n times simutaneously
Scott Hess
scott at doubleu.com
Tue Apr 25 12:47:25 PDT 2006
On 4/25/06, Seth David Schoen <schoen at loyalty.org> wrote:
> New bash syntax always amazes me. An older and much more portable
> approach would be
>
> for i in $(seq 10); do
> cmd &
> done
Wow, never heard of seq. Cool. Even more portable and less obvious
alternative that doesn't use such a special-purpose tool:
yes | head -10 | egrep -n y | cut -d: -f
:-),
scott
More information about the svlug
mailing list