Need to count the number of files in a directory by file name. Then write to a file.
This is what I have, however gives me an error,
type1count=$[`find -type f | ls -l type1* | wc -l`]
type2count=$[`find -type f | ls -l type2* | wc -l`]
printf " type1: $type1count, type2: $type2count \n" >> /app/temp/log.txt
type1count=3: command not found