summaryrefslogtreecommitdiffstats
path: root/scanners/dot-s-files.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scanners/dot-s-files.sh')
-rwxr-xr-xscanners/dot-s-files.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/scanners/dot-s-files.sh b/scanners/dot-s-files.sh
new file mode 100755
index 0000000..0fb7f18
--- /dev/null
+++ b/scanners/dot-s-files.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+scanner="Dot-S-Files"
+
+workdir="$1"
+src="$2"
+
+if [ -d "$src" ]
+then
+ count=$(find "$src" -name '*\.[sS]' -print | wc -l)
+else
+ count="-1"
+fi
+echo "${scanner}: $count"
+