Bash/Schleife

Aus crazylinux.de
Zur Navigation springen Zur Suche springen

Schleife mit bash

while true; do echo "established db connections:"; netstat -an|grep .139 |grep -i established| wc -l; sleep 120; done
for ((i=0; i<10; i++)); do echo -n "$i "; done
0 1 2 3 4 5 6 7 8 9

Links

http://www.linuxfibel.de/bash.htm

Keywords: bash,while,do,true,loop,shell,schleife,for