Help making shell script for basic command
I need to make a shell script for a command to create aliases for 500 folders in 500 parent directories. I've found one page that was useful (http://www.alvinpoh.com/how-to-make-...al-in-mac-osx/), however I need to put the aliases on several computers, and once the aliases made with that script are off my computer, the aliases are "dead," due to rights permissions, I assume.
The command works when I copy and paste the commands one by one into Terminal, but I'd rather not do that.
Example of folder structure
Example of command being used
ln -s "/Volumes/server/people/person1" /shortcuts/
Thanks for any help.
On Linux (that's what I have access to right now) something like this would work
If mindepth is supported by OS X's "find", then this script should work..
Thanks, I see what you're getting at there, but that line of code didn't work. Here's a site with how OS X uses mindepth. Any suggestions how to change it to work? Thanks.
sorry, link mentioned above: http://codesnippets.joyent.com/user/jvs/tag/prune
|All times are GMT -4. The time now is 08:07 PM.|
Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.