eshell-winnow-list

eshell-winnow-list is a compiled Lisp function in `esh-util.el'.

(eshell-winnow-list ENTRIES EXCLUDE &optional PREDICATES)

Pare down the ENTRIES list using the EXCLUDE regexp, and PREDICATES.
The original list is not affected. If the result is only one element
long, it will be returned itself, rather than returning a one-element
list.