Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: iterating through a hierarchy with a filter



On Thu, Apr 10, 2008 at 12:52:45PM +0200, Thor Andreassen wrote:

[...]

> find source/ -iname '*.xml' | while read file1; do 

Improvement, use:

find source/ -type f -iname '*.xml'

to make sure you only filter real files.

-- 
Thor



Messages sorted by: Reverse Date, Date, Thread, Author