I have two computers, lets call them movies and else, and I would like to symbolically merge files from else into movies.
In //movies/usr/local/sbin
I have:
script1
and script2
.
and in //else/usr/local/sbin
I have:
scripta
and scriptb
.
When listing files on movies I'd like to see all 4 scripts, however when on else I do not want to see the scripts on movies.
Is there a simple way to create a symlink
for this?
Thanks, Mark.
for
loop, e. g. for all files in the current directory withfor f in *; do ln -s /path/to/else/$f $f; done
. – dessert Aug 30 '17 at 20:44However, if /usr/local/sbin is empty on "movies", or if you know there is no overlap, then dessert's suggestion would work for you.
– rmbri Sep 01 '17 at 02:51