filterexec - Echo those arguments with which the given command returns zero.



NAME

filterexec - Echo those arguments with which the given command returns zero.


SYNOPSIS

filterexec <COMMAND> [<ARGS>] -- <DATA-1> [<DATA-2> [... <DATA-n>]]


DESCRIPTION

Prints each DATA (1 per line) only if command "COMMAND ARGS DATA" exits succesfully, ie. with zero exit status.


EXAMPLE

  filterexec test -d -- $(ls)

Shows only the directories.

 filterexec - Echo those arguments with which the given command returns zero.