Hello. I’v changed ‘scanvirus’ script so it outputs a file counter, better than printing current file scanned. The value matches the scan results output. To create percent and max files output, I need a recursive file count that matches this statement. I’v found several options online.
I wasn’t clear, let me explain. The manual file count works on scanvirus. It matches the output of clamscan “scan results”. I need the max file count before the manual file count starts. So, I can create a current/max count and percent.