Skip to content

Instantly share code, notes, and snippets.

@rubenerd
Created January 24, 2015 08:37
Show Gist options
  • Save rubenerd/1eaf58b26576104b89a2 to your computer and use it in GitHub Desktop.
Save rubenerd/1eaf58b26576104b89a2 to your computer and use it in GitHub Desktop.
Recursively build directory of symlinks
#!/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