Skip to content

Instantly share code, notes, and snippets.

@agazso
Created July 21, 2011 15:22
Show Gist options
  • Save agazso/1097425 to your computer and use it in GitHub Desktop.
Save agazso/1097425 to your computer and use it in GitHub Desktop.
Run the same command multiple times in parallel
#!/bin/bash
COUNT=$1
shift
for ((i=0; i<$COUNT; i++))
do
$* &
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment