Question : command to find file type

unix (solaris10) command for finding number of files  of  type jsp.

I have a command which will show how many files are there with extension jsp in my oracle directory, but i need a command that will count only jsp files in that directory. The command i have is
find . -type f | wc -l

Answer : command to find file type

find . -type f -name "*jsp" | wc  -l
or
find . -type f -name "*.jsp" |  wc  -l

depending on whether there is a dot ( . ) in front of "jsp"

wmp
Random Solutions  
 
programming4us programming4us