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
Apple Computing Products:
macOS - Operating System
Proper dir from Terminal?
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="jlawn" data-source="post: 1334553" data-attributes="member: 139867"><p><strong>Proper /dir listing from Terminal?</strong></p><p></p><p>When I generate a directory listing w/ a PC, i use cmd: "dir /b/s" and this will generate a list of my files with each file's path in front of it (ex: rootfolder\subfolder\file.txt). I can easily manipulate this in excel to upload files to my database with a directory command.</p><p></p><p>How can I get the same results from Terminal? I have been using "ls -lR", and getting a list, however it only lists the parent folder once, then all file names beneath... then the next parent folder name, all file names, etc. I need to see the individual path in front of each file name that is generated. </p><p></p><p>This has been stunting my progress for a while now, and any help is greatly appreciated!!</p></blockquote><p></p>
[QUOTE="jlawn, post: 1334553, member: 139867"] [b]Proper /dir listing from Terminal?[/b] When I generate a directory listing w/ a PC, i use cmd: "dir /b/s" and this will generate a list of my files with each file's path in front of it (ex: rootfolder\subfolder\file.txt). I can easily manipulate this in excel to upload files to my database with a directory command. How can I get the same results from Terminal? I have been using "ls -lR", and getting a list, however it only lists the parent folder once, then all file names beneath... then the next parent folder name, all file names, etc. I need to see the individual path in front of each file name that is generated. This has been stunting my progress for a while now, and any help is greatly appreciated!! [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Proper dir from Terminal?
Top