#!/bin/sh while read neg dim pos do echo "neg: `zgrepc $neg`" echo "dim: `zgrepd $dim`" echo "pos: `zgrepc $pos`" echo "" done