Skip to content

Instantly share code, notes, and snippets.

@seveibar
Created March 24, 2014 04:26
Show Gist options
  • Save seveibar/9734161 to your computer and use it in GitHub Desktop.
Save seveibar/9734161 to your computer and use it in GitHub Desktop.
Simple script to repeat command specified number of times
#!/bin/bash
for i in $(seq 1 $1)
do
${@:2}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment