RSS

BASH for loop

Thu, Jun 22, 2006

System Administration

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

Outputs
a
b
c
d
e
f

This post was written by:

Bealers - who has written 352 posts on Darren Beale.


Contact the author

Leave a Reply