[PLUG] looping over file names in numeric order in bash?

Galen Seitz galens at seitzassoc.com
Wed Feb 7 19:15:38 UTC 2007


Eric Wilhelm wrote:
> for i in $(ls -v data*.ps)
> do
>   echo $i
> done
> 
> --Eric

Excellent!  GNU specific, but that's okay.

One more question.   Why $(...) rather than `...` ?

thanks,
galen




More information about the PLUG mailing list