Right now I use this
ln -s /dir/* /dir2/
Which will symlink everything, but I have to go inside the dir
and make a new directory because the folders are also symlinked (this is expected).
So here is what Im trying to achieve: Symlink all files, but when there is a folder, make a directory with the same name and symlink the files inside of that folder and inside that folder, etc.
Much like GNU cp
with the -al
flag, which I got by running brew install coreutils
.
gcp -al /dir1/ dir2/
This does what I want except they are hard links and not symlinks.
gcp -as
(only works with absolute paths though).