# ------------------------------------------------------ # Name: listhtml # Author: Dean Stringer (deeknow@pobox.com) # Desc: Searches a default web root location for all # files with typical HTML like extensions and # outputs result to STDOUT. If a paramater is # given on the command line, this will be used # for a case-insensitve search of file name # or path. # # ------------------------------------------------------ # check at least one argument supplied if [ $# -gt 0 ] ; then str2find=$1 find /home/www/ -iregex ".*$str2find.*htm.?" -print else find /home/www/ -regex '.*htm.?' -print fi