1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/for.md
2021-03-30 10:26:00 +03:00

12 lines
286 B
Markdown

# for
> Shell loop over parameters.
> More information: <https://man.archlinux.org/man/for.n>.
- Perform a command with different arguments:
`for argument in 1 2 3; do {{command $argument}}; done`
- Perform a command in every directory:
`for d in *; do (cd $d; {{command}}); done`