On Mon, 10 Oct 2011 23:58:04 +0200, Michal Soltys wrote: > + function rotor() { > + local _f1 _f2 > + while read _f1; do > + echo "$_f1" > + if read _f2; then > + echo "$_f2" 1>&${_side2} > + fi > + done | bmf1 1>&${_merge} + } > # Use two parallel streams to filter alternating modules. > - local merge side2 > - ( ( local _f1 _f2 > - while read _f1; do echo "$_f1" > - if read _f2; then echo "$_f2" 1>&${side2}; fi > - done \ > - | bmf1 1>&${merge} ) {side2}>&1 \ > - > | bmf1 ) {merge}>&1 > + eval "( ( rotor ) ${_side2}>&1 > | bmf1 ) ${_merge}>&1" > } > hostonly='' instmods sr_mod sd_mod scsi_dh scsi_dh_rdac > scsi_dh_emc hostonly='' instmods pcmcia firewire-ohci Interesting function, if i understand it correctly, it parallelizes the stream into two so that can speed up the pattern filtering? My brain spins... -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html