#!/bin/sh for F in `ls *zip` do zcat $F | grep "what I'm interested in" done