#!/bin/sh -x if [ "$#" -eq 0 ]; then echo "Need to enter file name..." exit else value=`grep -i '(.jpg|.gif)' $1` print " ${value} " fi