for
Verified for current stable LTS
For Commands
For command syntax with verified terminal examples.
Commands
6 commands for For
for Operations
For Command: Execute Commands For Specified Items
for <variable> in <item1 item2 ...>; do <echo "Loop is executed">; done for Operations
For Command: Iterate Command Line Parameters
for <variable>; do <echo $variable>; done for Operations
For Command: Iterate List Of Directories
for <variable> in <path/to/directory1/ path/to/directory2/ ...>; do <echo "Loop is executed">; done for Operations
For Command: Iterate List Of Files
for <variable> in <path/to/file1 path/to/file2 ...>; do <echo "Loop is executed">; done for Operations
For Command: Iterate Range Of Numbers
for <variable> in {<from..to..step>}; do <echo "Loop is executed">; done for Operations
For Command: Perform Command In Every Directory
for <variable> in */; do (cd "$<variable>" || continue; <echo "Loop is executed">) done Suggest a For Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common For workflows.
Verified version: current stable LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.