jeudi 27 mars 2014

Get ONLY sym links to a file


Vote count:

0




I looked into symbolic link: find all files that link to this file and http://ift.tt/1gHhoEa but they didn't seem to solve the problem.


if I do find -L -samefile path/to/file the result contains hard links as well as sym links.


I've been trying to come up with a solution to fetch ONLY sym links, but can't seem to figure it out. I've been trying to combine -samefile and -type l but that got me nowhere.



man find


says you can combine some options into an expression, but I failed to do it properly. Any help greatly appreciated!



asked 45 secs ago

omot

17





Aucun commentaire:

Enregistrer un commentaire