· 1 min read · Dev-Sys

BASH for loop

#!/bin/sh for FOO in a b c d e f; do echo $FOO done

Outputs a b c d e f