loop through folders

Brian Dessent brian@dessent.net
Tue Jun 20 00:24:00 GMT 2006

mwoehlke wrote:

> This is not a Cygwin question. However, 'find . | xargs <your program>'
> might help you.

It's not a bad idea to get into the practice of always doing "find .
-print0 | xargs -0 <your program>" instead of the above.  Otherwise,
files with spaces or other strange characters in their names will cause
the command to fail.  And even if you don't happen to have any filenames
with spaces at the moment, it doesn't hurt -- it's just good hygeine.


Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

More information about the Cygwin mailing list