On Thu, Jun 3, 2010 at 14:58, Wietse Venema <wie...@porcupine.org> wrote:
> Phil Howard:
>> It looks like postmap can read stdin when getting a list of keys for
>> delete or query.
>
> As documented in the postmap manpage:
>
>       -d key
>              ...
>              If a key value of - is specified, the program reads  key  values
>              from  the standard input stream.
>
>       -i     Incremental  mode.  Read  entries from standard input and do not
>              truncate an existing database.
>
>       -q key
>              ...
>              If  a  key value of - is specified, the program reads key values
>              from the standard input stream and writes one line of key  value
>              output for each key that was found.
>
>>  There appeared to be no documented way to read from
>> stdin to create a new map.

So that limits using stdin to incrementing an existing map (such as
creating an empty one), or using the /dev/stdin trick.  I'm just
wondering if there any pitfalls to the /dev/stdin method.

Reply via email to