count drives by type, ignoring serial number
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 1 Oct 2011 10:56:25 +0000 (10:56 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 1 Oct 2011 10:56:25 +0000 (10:56 +0000)
git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@281 191e9f34-6774-4a6d-acfc-7664dacd4a2a

recepies/smart/count-drives.sh [new file with mode: 0755]

diff --git a/recepies/smart/count-drives.sh b/recepies/smart/count-drives.sh
new file mode 100755 (executable)
index 0000000..7dbaac3
--- /dev/null
@@ -0,0 +1 @@
+ls */smart.* | cut -d. -f2 | cut -d_ -f-3 | cut -d\- -f1 | sort | uniq -c