Loop structures: Difference between revisions

Content added Content deleted
Line 814: Line 814:


===while===
===while===

'''Interpreter:''' [[bourne SHell]]
'''Interpreter:''' [[bourne SHell]]

#!/bin/sh
#!/bin/sh
# repeat a command 100 times
# repeat a command 100 times
Line 827: Line 825:


'''Interpreter:''' [[Bourne Again SHell]]
'''Interpreter:''' [[Bourne Again SHell]]

#!/bin/bash
#!/bin/bash
while true
while true