On 2/15/07, Ignazio Di Napoli wrote:
I'm newbie with Cygwin. Looking through ls option, I didn't find anything to list then names of all files in the directory and all subdirectories, like dir /b /s does. Since it can be very useful in bash scripts, there must be some way. Right now I've done a recursive function which scans the directory and then launches itself for subdirectories, but it could be much simpler if there was the "dir /b /s" command, so I can't think anybody implemented it... Can you help me please?
ls has a recursive flag for ls (-R), but the find command may be more appropriate for scripting. Svend -- 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/