This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: loop through folders


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.

Brian

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]