Is there a UNIX command to dereference a symbolic link? I would like to replace the link by a copy of the file it points to.
Example:
$ ls
a
b -> a
$ deref b
$ ls
a
b
Now, a and b have the same content but are independent of each other. My question is if there is such a deref command. Important: I don't have to know where b points to; the command should figure that out.