Bash/LoopOverFiles

From ProgrammingExamples
< Bash
Revision as of 10:53, 24 January 2011 by Daviddoria (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This example loops over all of the png files in the current directory and calls ls on them.

LoopOverFiles.sh

for i in *.png; do ls $i; done;