in reply to Re: chosse selected files and delete restin thread chosse selected files and delete rest
unlink grep { -f $_ && ! /$pattern/ } glob "$Directory/*"; [download]