zsh glob to match broken symlinks
Peter Stephenson suggests that one can make a zsh glob (wildcard) match only broken symlinks by appending the (N-@) glob qualifier. (You must have setopt EXTENDED_GLOB or BARE_GLOB_QUAL for this to work.)
So for example this shows all the broken links in the manpage directory:
ls -lGg /usr/share/man/*/*(N-@)
posted Fri 13 Jan 2006 in /software/zsh | link
Archives 2008: Apr Feb 2007: Jul May Feb Jan 2006: Dec Nov Oct Sep Aug Jul Jun Jan 2005: Sep Aug Jul Jun May Apr Mar Feb Jan 2004: Dec Nov Oct Sep Aug Jul Jun May Apr Mar Feb Jan 2003: Dec Nov Oct Sep Aug Jul Jun May
Copyright (C) 1999-2007 Martin Pool.