Recursive Copy / Create
Greetings all...
I have over 300 directories in one place and I must create 4 symlinks in each dir. Is there a quick way to copy 4 symlinks recursively or do I need to create a script that will traverse the directories, make the symlinks and then move to the next dir? Any ideas on how I should do that? Thanks so much! |
post more info...
u want to create the same symlinks in every dir?? |
Yep - I need the same exact symlink in every dir:
/dir/1 /dir/2 /dir/3 ... /dir/x for /dir/1->x I must place 4 exact symlinks - for example: dir/1/index.html --> links to /dir/master/index.html dir/2/index.html --> links to /dir/master/index.html |
Code:
#!/bin/bash |
Thanks for the fast reply ...
I ran the script as instructed and it did make the links in the current directory but did not traverse the other directories: FROM: /var/www/vhosts/my-domain.com/httpdocs/Info-A I ran ./make-sym /var/www/vhosts/my-domain.com/httpdocs/Info-A It DID make the 4 sym links in Info-A dir but NONE in Info-A/1 Info-A/2 Info-A/3 ... Info-A/x Thanks again! |
Hello.
Try this one-liner: Code:
export to=`pwd`/index.html; |
All times are GMT -5. The time now is 07:03 AM. |