Bash For Loop One Line Code Example


Example 1: while bash one line

while CONDITION_STATEMENT; do SOME_CODE; done

Example 2: bash single line loop

while true; do foo; sleep 2; done

Example 3: linux for loop one line

for i in {1..5}; do COMMAND-HERE; done

Comments

Popular posts from this blog

Chemistry - Bond Angles In NH3 And NCl3

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Change The Font Size Of Visual Studio Solution Explorer