Wednesday, August 10, 2011

找出目錄下所有壞掉的 symblic link

找出目錄下所有壞掉的 symblic link

find . -type l | perl -lne 'print if ! -e'

配合xargs 做刪除動作

find . -type l | perl -lne 'print if ! -e' | xargs rm -rf

http://hsian-studio.blogspot.com/2011/04/symblic-link.html

No comments: