Update 2023-11-08 11:09:11

This commit is contained in:
c0dev0id 2023-11-08 11:09:13 +01:00
parent 008fd84a8e
commit 0e3f5a3490

View File

@ -20,10 +20,10 @@ EOF
# print list
ls -r1 *.ps *.pm *.ph *.pa *.pt 2>/dev/null | fgrep -v '.draft.' | while read line
do
DATE=$(echo "$line" | cut -d_ -f1 )
DATE="$(echo "$line" | cut -d"_" -f1 )"
if [ $(echo "${line##*.}") == "pm" ]
then
TITLE="$DATE - $(head -1 "$line" | sed 's/^# //g')"
TITLE="$DATE - $(head -1 "$line" | sed 's/^# +//g')"
else
TITLE="$DATE - $(echo "${line%%.*}" | tr '_' ' ')"
fi