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: Windows' dir /s /b equivalent


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/


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