Thread
:
repeat same command n times
View Single Post
#
3
(View Single Post)
10th March 2009
Carpetsmoker
Real Name: Martin
Tcpdump Spy
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
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.
Carpetsmoker
View Public Profile
Visit Carpetsmoker's homepage!
Find all posts by Carpetsmoker