Pular para o conteúdo

util.dev.br

Utilities for Developers

  • Tools
  • Library
  • Contact

for command

Executes a block of statements for each item in a list.
Example:

for i in $(seq 1 5)
of
echo “Number: $i”
done

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

Navegação de Post

Anteriores Post anterior: until command
Próximo Próximo post: Create and use functions
  • 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