http://code.google.com/p/syntaxhighlighter/
for myloop in 1 2 3 4 5 do echo -n "$myloop" if [ "$myloop" -eq 3 ] then break # This line will break out of the loop fi done