create/update 'HowTo - Cleaning up Daylog Files.md' file
This commit is contained in:
17
HowTo - Cleaning up Daylog Files.md
Normal file
17
HowTo - Cleaning up Daylog Files.md
Normal 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
|
||||
```
|
||||
Reference in New Issue
Block a user