#!/bin/bash # Basic for loop # implicitly over a list of items. Implicit in that the string is split for you names='Stan Kyle Cartman' names=`ls` for name in $names do echo $name done echo All done