Removing Broken Symlinks: Difference between revisions

From Leo's Notes
This page was last edited on 29 March 2015, at 06:19.
mNo edit summary
 
Line 1: Line 1:
To remove all 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]]
[[Category:Tipsntricks]]
{{Navbox Linux}}

Latest revision as of 06:19, 29 March 2015