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
Help making shell script for basic command
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="Raz0rEdge" data-source="post: 1452402" data-attributes="member: 110816"><p>On Linux (that's what I have access to right now) something like this would work</p><p>[CODE]</p><p>for dir in `find /Volumes -mindepth 3`; do</p><p> ln -s "$dir " /shortcuts/</p><p>done</p><p>[/CODE]</p><p></p><p>The mindepth here ensures that you get the "server/people/personX" level. Without that, you end up getting "server" and "server/people" as well which you probably don't want.</p><p></p><p>If mindepth is supported by OS X's "find", then this script should work..</p></blockquote><p></p>
[QUOTE="Raz0rEdge, post: 1452402, member: 110816"] On Linux (that's what I have access to right now) something like this would work [CODE] for dir in `find /Volumes -mindepth 3`; do ln -s "$dir " /shortcuts/ done [/CODE] The mindepth here ensures that you get the "server/people/personX" level. Without that, you end up getting "server" and "server/people" as well which you probably don't want. If mindepth is supported by OS X's "find", then this script should work.. [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Help making shell script for basic command
Top