11 lines
219 B
Bash
Executable File
11 lines
219 B
Bash
Executable File
#!/bin/bash
|
|
t='['
|
|
for entry in notes/*
|
|
do
|
|
filename=$(basename "$entry" .md)
|
|
timestamp=`git log --format=%ad --date=format:'%Y-%m-%d' -- $entry`
|
|
t+="{\"dest\"=$filename,\"time\"=$timestamp},"
|
|
done
|
|
echo "${t%?}]"
|
|
|