Package osh :: Package command :: Module select
[frames] | no frames]

Module select

source code

select FUNCTION

FUNCTION is applied to input objects. Objects for which FUNCTION evaluates to true are sent to the output stream.

Example: For the input (1,), (2,), (3,), (4,), this command:

   select 'x: (x % 2) == 0'

generates the output (2,), (4,).

Functions
 
select(function)
Input objects for which function evaluates to true are sent to the output stream.
source code