i want to make symbolic links from existing files. Example
Directories:
workdir=/mnt/sdc3/workdir_temp
dir1=/usr/share/applications-desktop-files
dir2=/usr/share/applications
fullpath1=/$workdir/$dir1
fullpath2=/$workdir/$dir2
I want to make symbolic links from $dir1 to $dir2 inside the $workdir!
So, the target of symlink in $dir2 is $dir1 and NOT $workdir/$dir1
Any chance (how) to do this?
Thanks!
EDIT:
Code: Select all
cd $workdir
BNF=`basename "$file"`
ln -s "$dir1/$BNF" "$dir2/$BNF"
Could it be that easy???
NO!!! Did only work one time!
Need Help!!!