Tagged Questions
3
votes
3answers
74 views
Portable way to get script's absolute path?
What is a portable way for a (zsh) script to determine its absolute path?
On Linux I use something like
mypath=$(readlink -f $0)
...but this is not portable. (E.g., readlink on darwin does not ...
2
votes
2answers
142 views
Create a new link to access all files and folders
I get stuck to create a shell script for a new link something like that
link linkPathName orginalPathName
I want to create a link between a new link and original path; however, both can access ...
1
vote
1answer
652 views
How synchronize two disks (or folders) using symbolic (or hard) links (like rsync)?
I'm searching a tool or a shell script or another program to synchronize two or more folders or disks.
But it differs of rsync tool, because, I don't want to duplicate the missing file, but do a ...
1
vote
1answer
765 views
Get path of current script when executed through a symlink
I have a utility consisting of a couple directories with some bash scripts and supporting files that will be deployed to several machines possibly in a different directory on each machine. The ...
