for loop in a 1 bash line code example Example: bash single line loop while true; do foo; sleep 2; done