Bash While Loop Examples

#1

Originally published at: https://www.cyberciti.biz/faq/bash-while-loop/

How do I use bash while loop to repeat specific task under Linux / UNIX operating system? How do I set infinite loops using while statement? Can you provide me the while loop examples?