# **************************************************************** # Name: filetypes.sh # Author: Dean Stringer # # Desc: Performs a find looking for known web file extentions and # spits out filecounts for each one (starting from wherever # you are in the file-system at the time). If you want to # report on the whole web volume you'll probably wanna run # this as 'root' as some folders will invariably be not # indexable under you UID. # # **************************************************************** for ext in htm html shtml pdf swf inc js css \ php pl cgi class java \ csv dtd sql tab txt xml xsl \ doc mbd ppt rtf xls \ avi bmp gif jpg jpeg mov mp3 png psd ra ram rm svg tif wav wmf \ exe gz tar zip; do echo $ext locate "*.$ext" | egrep -iv "_vti_|.appledouble|other|folders|paths|we|dont|want" | wc -l done