Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: pruning path array.



Hello Bart 

	perfect - thanks. ;-)

			Anthony.

On 14 Nov 2003 at 17:24:06, Bart Schaefer wrote:
> On Nov 14, 12:18pm, Anthony R Iano-Fletcher wrote:
> }
> } How do I delete elements of an array (say path) that do not exist as
> } directories?
> 
>     path=( ${^path}(N/) )
> 
> Or, if you want symlinks to directories to be kept,
> 
>     path=( ${^path}(N-/) )




-- 
Anthony R Iano-Fletcher        Anthony.Iano-Fletcher@xxxxxxx
                               http://cbel.cit.nih.gov/~arif
                               CBEL, CIT, NIH, Bethesda, MD, USA.
                               Phone: (+1) 301 402 1741.



Messages sorted by: Reverse Date, Date, Thread, Author