For loops with the find command. The syntax of a for loop from the bash manual page is. However, for complicated IT automation tasks, you should use tools like Ansible, Salt, Chef, pssh and others. For loops can save time and help you with automation for tiny tasks. Bash For Loop Guide and Examples. Note: Observe that the only difference between first type of for loop and this one is the double quotes around string variable. I am trying get a output printed on a same line using echo command in bash script. This is a more robust solution rather than assigning individual arguments to a variable as here we don't have to … Video 01: 15 Bash For Loop Examples for Linux / Unix / OS X Shell Scripting Conclusion. Echo Command is given inside a loop, everytime the loop runs, executes a echo command. Bash For Loop Example The bash $(