Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: finding symlinks without target
- X-seq: zsh-users 1267
- From: Bruce Stephens <B.Stephens@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: finding symlinks without target
- Date: Fri, 23 Jan 1998 17:46:35 +0000
- Cc: ZShell Users <zsh-users@xxxxxxxxxxxxxxx>
- In-reply-to: Your message of "Fri, 23 Jan 1998 09:10:30 PST." <980123091030.ZM16856@xxxxxxxxxxxxxxxxxxxxxxx>
schaefer@xxxxxxxxxxxxxxxx said:
> However, this appears to do the trick:
> echo **/*(@-^./=%p)
> All symlinks that don't point to files, directories, sockets, devices,
> or named pipes. Whew.
It's zany, sure. I'm tempted to suggest a special non-existent file
qualifier, which would expand to files that don't exist, which you could then
use in this context, but that's probably a bit expensive if you use it in any
other context. And a special combination qualifier of ./=%p is probably not
useful enough to add either. So Bart's solution is probably as simple as it's
going to get.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author