Removing Broken Symlinks: Difference between revisions

From Leo's Notes
This page was last edited on 29 March 2015, at 06:19.
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"
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
To remove broken symlinks automatically, run:
#REDIRECT [[The_find_Command#Remove_all_broken_symlinks]]
  find . -type l -! -exec test -e {} \; -print | while read i ; do rm  -v $i ; done
 
 
[[Category:Linux]]

Latest revision as of 06:19, 29 March 2015