filterexec - Echo those arguments with which the given command returns zero. |
filterexec - Echo those arguments with which the given command returns zero.
filterexec <COMMAND> [<ARGS>] -- <DATA-1> [<DATA-2> [... <DATA-n>]]
Prints each DATA (1 per line) only if command "COMMAND ARGS DATA" exits succesfully, ie. with zero exit status.
filterexec test -d -- $(ls)
Shows only the directories.
filterexec - Echo those arguments with which the given command returns zero. |