pyratelog

personal blog
git clone git://git.pyratebeard.net/pyratelog.git
Log | Files | Refs | README

commit b00bbc5ceb691cd53c977eb0ae232b5e12384873
parent 5c94f6fd4d3ddd9aad9ae994e04330646aaafcc6
Author: pyratebeard <root@pyratebeard.net>
Date:   Fri, 21 Jan 2022 16:24:18 +0000

update to input so we can have periods

Diffstat:
Mpyratelog.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyratelog.sh b/pyratelog.sh @@ -21,7 +21,7 @@ find_md=$(find entry/ -type f -name "*.md" | sort) for md in ${find_md} ; do # get the title and date from the filename - input=$(echo ${md} | cut -f2 -d '/' | cut -f1 -d '.') + input=$(echo ${md} | cut -f2 -d '/' | rev | cut -f2- -d '.' | rev) # cut the date and turn into epoch time input_date=$(echo ${input} | cut -f1 -d '-' )