Created
January 24, 2015 08:37
-
-
Save rubenerd/1eaf58b26576104b89a2 to your computer and use it in GitHub Desktop.
Recursively build directory of symlinks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## Recursively build directory of symlinks | |
## Subdirectories also symlinked | |
## Desirable if you want to add files at root level | |
root=/some/directory | |
destination=. | |
for file in ${root}/*; do | |
ln -s ${file} ${destination} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment