From 2a9538f7711dcea71ba5702ca94a9d9c00287ea4 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 16 Feb 2020 15:57:40 -0500 Subject: added the rest of bin --- bin/wired-count-h4-items.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bin/wired-count-h4-items.py (limited to 'bin/wired-count-h4-items.py') 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) -- cgit v1.2.3-70-g09d2