Difference between revisions of "Bash/LoopOverFiles"

From ProgrammingExamples
Jump to: navigation, search
(Created page with 'This example loops over all of the png files in the current directory and calls ls on them. ==LoopOverFiles.sh== <source lang="bash"> for i in *.png; do ls $i; done; </source>')
 
(No difference)

Latest revision as of 10:53, 24 January 2011

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;