create/update 'HowTo - Cleaning up Daylog Files.md' file

This commit is contained in:
anonymous
2023-12-19 14:48:45 -05:00
parent db0fdc1a00
commit 161c7ad7c4

View File

@@ -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
```