Toggle navigation
#!
OpenCont
Notes
Search
Contact
Home Page
Notes
Execute a loop in a terminal
Previous
|
Next
Execute a loop in a terminal -
loop while for terminal
Script and coding
12.02.2012
3255
If you want to execute a loop directly from the terminal:
infinite while loop:
bash-4.1# while [ 1 ]; do uptime; sleep 5; done
for loop:
for i in $(seq 50); do echo "it works"; sleep 5; done
Copyright © 2008-2020