I asked myself the question, what would be the best way under Linux to find and remove dead links?
Here is the short answer (only tested on bash):
find . -type l -exec sh -c "file -b {} | grep -q ^broken" \; -print | tr "\n" "" | xargs -0 rm
I asked myself the question, what would be the best way under Linux to find and remove dead links?
Here is the short answer (only tested on bash):
find . -type l -exec sh -c "file -b {} | grep -q ^broken" \; -print | tr "\n" "" | xargs -0 rm
Erstelle kostenlos eine Website oder ein Blog auf WordPress.com.