My bash script is getting two arguments with folders (that exist and everything).
Inside the first one I want to create a link to the second
Suppose I have the folders /home/matt/a and /home/matt/b, I call the script like this :
/home/matt # ./my_script ./a ./b
I want to see a symbolic link inside a that points to b
And of course, just doing
ln -s $2 $1/link
in the script does not work... (it will create a link that looks for a ./b inside a)
This is just a very simple example, I am looking for a script that will be generic enough to take different arguments (absolute or relative path...etc...)