blob: d205ca10eb3914591d9a1b074f808c62ae0f0781 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/bash
#
# Copyright (c) 2012, Al Stone <ahs3@ahs3.net>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of version 2 (only) of the GNU General
# Public License as published by the Free Software Foundation.
#
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"
|