#!/bin/sh for f in `find /skimmilk/textfiles -type f -name \*.html`; do r=`grep -i -n "href=\"http://www\\.textfiles\\.com\|href=\"http://textfiles\\.com" $f` if [ "$r" != "" ]; then echo "Absolute link(s) in $f" echo "$r" fi done