🧠Second Brain
Search
Counting Words written in Markdown
To document the progress of my book writing, I created a little script that outputs words written over time.
Markdown files in my Obsidian Vault:
|
|
or another one:
|
|
Explanation:
find /path/to/your/obsidian/vault
: Searches the specified directory.-type f
: Ensures that only files are considered (not directories).-name "*.md"
: Filters the search to only include files with the.md
extension.| wc -l
: Counts the number of lines output by thefind
command, which corresponds to the number of Markdown files.
# Data Views
.
|
|
# Over time with git (DEDP book)
Interesting is to count the words over time. As I have everything in git, I loop over git logs
with this script words-history.sh
:
|
|
Now I can run below in my Makefile:
|
|
With Rill Developer, I imported and created CSV and made a dashboard with
|
|
Simple is beauty.
Origin:
References: Markdown
Created 2023-11-09