Removing Broken Symlinks

From Leo's Notes
Revision as of 05:30, 29 March 2015 by Leo (talk | contribs)
This page was last edited on 29 March 2015, at 05:30.

To remove all broken symlinks automatically, run:

 find . -type l -! -exec test -e {} \; -print | while read i ; do rm  -v $i ; done