Pular para o conteúdo

util.dev.br

Utilities for Developers

  • Tools
  • Library
  • Contact

while command

Executes a block of statements while a condition is true.
Example:

i=0
while [ $i -lt 5 ]
of
echo “Number: $i”
i=$((i+1))
done

Autor jgouveaPublicado em 25 de fevereiro de 202325 de fevereiro de 2023Categorias Flow commands

Navegação de Post

Anteriores Post anterior: “case” command
Próximo Próximo post: until command
  • Bash shell
  • Debugging
  • File Processing
  • Flow commands
  • Functions
  • Process Management
  • Regular Expressions
  • String Manipulation
  • Variables and Operators
util.dev.br Developed by util.dev.br - © 2025 - All rights reserved