show_brokensymlinks 327 B

12345678
  1. #!/bin/bash
  2. #WARNING: added -P0 aka multithreads, so I hope the output doesn't get mangled! (it should tho!)
  3. find . -type l -print0 | xargs -P0 -0 -I '{}' -n 1 sh -c 'if test ! -e "{}"; then echo "{}"; fi' | grep -vF '/filesystem_now/'
  4. #^ auto ignoring broken links inside filesystems due to the exitence of relative links!