Text Link Ads

Saturday, October 6, 2007

Tip for the day: LINKS THAT POINT TO NOTHING

find / -type l -print |perl -nle '-e || print';

This will look for all links that are dead and print it out. It can be piped to a file and unlink it later. It is wise to list the links first and save the output to a file. This is in case if the links are needed by
users which remove those files temporary for testing or housekeeping.

No comments: