Permalink
Browse files

Added repeat.

  • Loading branch information...
1 parent c6a3164 commit 8c590d53fef4d54c2ad2a7cca6147f26ebe2a7db @jgm committed Nov 4, 2010
Showing with 8 additions and 0 deletions.
  1. +3 −0 README
  2. +5 −0 repeat
View
3 README
@@ -15,6 +15,9 @@ googlecode_upload.py
note
add a note to a list of unstructured notes
+repeat
+ repeats a command a given number of times
+
s3sh
a wrapper around the s3sh gem
View
5 repeat
@@ -0,0 +1,5 @@
+#!/bin/sh
+# repeat n "command here"
+# repeats the command n times
+for i in $(seq 1 $1); do $2; done
+

0 comments on commit 8c590d5

Please sign in to comment.