From 161c7ad7c41f8a69f3fde6059037d364b351b99c Mon Sep 17 00:00:00 2001 From: anonymous <> Date: Tue, 19 Dec 2023 14:48:45 -0500 Subject: [PATCH] create/update 'HowTo - Cleaning up Daylog Files.md' file --- HowTo - Cleaning up Daylog Files.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 HowTo - Cleaning up Daylog Files.md diff --git a/HowTo - Cleaning up Daylog Files.md b/HowTo - Cleaning up Daylog Files.md new file mode 100644 index 0000000..47e4820 --- /dev/null +++ b/HowTo - Cleaning up Daylog Files.md @@ -0,0 +1,17 @@ +# Cleaning up Daylog md files + +I converted my daylogs from Google Docs format to Markdown using the Markdown converter, and it left something to be desired. This is how I finished cleaning up the files before I converted them all to TiddlyWiki format. + +## Convert from Google Docs → Markdown +``` +find /home/chawley/Documents/GD-Daylogs -type f -iname "*.docx" -exec sh -c 'pandoc -s "$1" --wrap=none -o "${1%.docx}.md"' _ {} \; +``` + +``` +sudo sed -i 's/^\(2023\)/## \1/g' Daylog\ -\ 2023-07.md +sudo sed -i 's/^----------/d' Daylog\ -\ 2023-07.md +sudo sed -i 's/^- /\* /g' Daylog\ -\ 2023-07.md +sudo sed -i 's/{\.underline}//g' Daylog\ -\ 2023-07.md +sudo sed -i 's/\[\[/\[/g' Daylog\ -\ 2023-07.md +sudo sed -i 's/\]\]/\]/g' Daylog\ -\ 2023-07.md +``` \ No newline at end of file