Sunday, November 2, 2008

Bash for example

Recently I've had to deal with bash regulary, but I keep forgetting the "for" syntax on bash. I've thought a good place to keep an example would be the blog. Here it is then:

for i in $(seq 1 100); do java -classpath classes pcusr78.practica1.Principal ; done

The sentence just executes a hundred times a small java program I've been working on for university. Hope it helps someone else!

Damnshock

No comments: