Loop There are multiple ways to implement loop in bash using while, for, until, etc. See source code for details.