escape char bs

This commit is contained in:
2025-04-25 22:25:35 +02:00
parent a293563e94
commit e5af6b4ca9
2 changed files with 8 additions and 4 deletions

View File

@@ -2,9 +2,13 @@
t='['
for entry in notes/*
do
echo $entry
filename=$(basename "$entry" .md)
timestamp=`git log --follow --format=%ad --date=format:'%Y-%m-%d' -- $entry`
t+="{\"source\"=\"$entry\",\"dest\"=\"$filename\",\"time\"=\"$timestamp\"},"
echo $filename
timestamp=`git log --format=%ad --date=format:'%Y-%m-%d' -- $entry`
echo $timestamp
t+="{\"dest\"=\"$filename\",\"time\"=\"$timestamp\"},"
echo $t
done
echo "value=${t%?}]"
echo "value=${t%?} ]"