Monthly Archives: March 2012

“Downlinking” hardlinked files without unlink()ing them

Do you use hard links for organizing files but still find them a bit dangerous? Here’s a bash function that will delete files only if their link count is greater than 1. dnl() {   err=0   for x in … Continue reading

Posted in Everydot | Leave a comment