#!/bin/sh cd /m/data1/hotlunches.net/ DIRS=`ls -d */` for dir in $DIRS do cd /m/data1/hotlunches.net/ echo $dir ls -l $dir/* | grep 1445718 cd $dir SUBDIRS=`ls -d */` for subdir in $SUBDIRS do ls -l $subdir/* | grep 1445718 done done