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