Removing Broken Symlinks

From Leo's Notes
Revision as of 23:02, 2 January 2015 by 136.159.16.240 (talk) (Created page with "To remove broken symlinks automatically, run: find . -type l -! -exec test -e {} \; -print | while read i ; do rm -v $i ; done Category:Linux")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This page was last edited on 2 January 2015, at 23:02.

To remove broken symlinks automatically, run:

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