2023-07-19 10:07:37 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
mkdir -p content/archd
|
|
|
|
mkdir -p content/archm
|
|
|
|
mkdir -p content/archy
|
|
|
|
|
2023-07-20 23:28:00 +00:00
|
|
|
grep -Rhm 1 ^date: content/artigos | sed -e 's/^date: \(....\)-..-.. ..:..:../\1/' | sort -u |
|
2023-07-19 10:07:37 +00:00
|
|
|
while read archy; do echo -e "---\ndate: $archy-01-01 00:00:00\n---" > content/archy/$archy.md; done
|
2023-07-20 23:28:00 +00:00
|
|
|
grep -Rhm 1 ^date: content/artigos | sed -e 's/^date: \(....-..\)-.. ..:..:../\1/' | sort -u |
|
2023-07-19 10:07:37 +00:00
|
|
|
while read archm; do echo -e "---\ndate: $archm-01 00:00:00\n---" > content/archm/$archm.md; done
|
2023-07-20 23:28:00 +00:00
|
|
|
grep -Rhm 1 ^date: content/artigos | sed -e 's/^date: \(....-..-..\) ..:..:../\1/' | sort -u |
|
2023-07-19 10:07:37 +00:00
|
|
|
while read archd; do echo -e "---\ndate: $archd 00:00:00\n---" > content/archd/$archd.md; done
|