summaryrefslogtreecommitdiff
path: root/bin/wired-count-h4-items.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/wired-count-h4-items.py')
-rwxr-xr-xbin/wired-count-h4-items.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/wired-count-h4-items.py b/bin/wired-count-h4-items.py
new file mode 100755
index 0000000..df39d3c
--- /dev/null
+++ b/bin/wired-count-h4-items.py
@@ -0,0 +1,10 @@
+import sys
+
+filename = '%s' %(sys.argv[1])
+with open(filename, newline='') as f:
+ content = f.readlines()
+ count = 0
+ for line in content:
+ if line.startswith('####'):
+ count = count + 1
+ print(count)