Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Shell script question
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Niwrad" data-source="post: 127114"><p>Is there any way to use a loop that will start from the top directory and work its way through the path? I think I could get this script to work if I knew how to make the list command treat a directory like a file when listing, i.e. when given a directory argument, the ls -l command would list the directory information as opposed to the information of its contents. Does anyone know of a command on Darwin that allows you to simply get a directory's info (in long format)?</p></blockquote><p></p>
[QUOTE="Niwrad, post: 127114"] Is there any way to use a loop that will start from the top directory and work its way through the path? I think I could get this script to work if I knew how to make the list command treat a directory like a file when listing, i.e. when given a directory argument, the ls -l command would list the directory information as opposed to the information of its contents. Does anyone know of a command on Darwin that allows you to simply get a directory's info (in long format)? [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Shell script question
Top