leia stdin em função no script bash

Eu tenho algumas funções bash que geram algumas informações:

find-modelname-in-epson-ppdsfind-modelname-in-samsung-ppdsfind-modelname-in-hp-ppdsetc ...

Eu tenho escrito funções que leem a saída e filtram:

function filter-epson {
    find-modelname-in-epson-ppds | sed <bla-blah-blah>
}

function filter-hp {
    find-modelname-in-hp-ppds | sed <the same bla-blah-blah>
}
etc ...

Mas achei que seria melhor fazer algo assim:

function filter-general {
    (somehow get input) | sed <bla-blah-blah>
}

e depois chamar outras funções de alto nível:

function high-level-func {
    # outputs filtered information
    find-modelname-in-hp/epson/...-ppds | filter-general 
}

Como posso conseguir isso com as melhores práticas bash?

questionAnswers(3)

yourAnswerToTheQuestion