View Single Post
  #3   (View Single Post)  
Old 10th March 2009
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Dutchman living in the UK
Posts: 2,196
Default

You can use a shell script, something like:

Code:
#!/bin/sh

for i in $(jot 10); do
  echo "Running command for the ${i}nth time"
done
This will run 10 times.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote