1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-01 23:17:56 +01:00
tldr/pages/common/for.md
2016-01-13 12:04:46 +01:00

227 B

for

Shell loop over parameters.

  • 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