transcribe_wavs/add_to_file.sh

5 lines
311 B
Bash

#!/bin/bash
#$PG -t -A -c "SELECT '## 2023-03-31' UNION ALL SELECT ' - ' ||(message->>'text') from rlarp.thirtysec where mdate >= '2023-03-31'" | fold -s -w 80 | sed -E 's/^([^ -])/ \1/;s/^(-{1,2} )/ \1/;s/^/ /'
$PG -t -A -f dump_new_lastweek.pg.sql >> /mnt/c/Users/ptrowbridge/hc_notes/transcribe.md