[Nelug] Bash Scripting

Andrew Hatch andrew.hatch at bluespace.com
Fri Sep 19 11:37:01 UTC 2003


Good point, well made - thank you.

> You could use an array to hold the values:
> 
> #!/bin/bash
> 
> FILES[1]="/home/file1.dat"
> FILES[2]="/home/file2.dat"
> FILES[3]="/home/file3.dat"
> 
> for i in ${FILES[*]}
> do
>         echo $i
> done
> 
> 
> Eddy.





More information about the Nelug mailing list