[tex-live] texlinks patch - unlink option

Karl Berry karl at freefriends.org
Thu Oct 11 00:37:10 CEST 2007

    The following command removes all symlinks to nonexistent files:
    find / -name "*" -type l ! -xtype f ! -xtype d -ok rm {} \;

Unless it's linked to a special file, or socket, or some other file type.

The find manual says this:
    ``-P -xtype l''
          True if the symbolic link is broken

I didn't try it, but I presume that means 
  find / -P -xtype l -ok rm '{}' \;
would be a more robust way to accomplish the task.


More information about the tex-live mailing list