erste Version des Blogs, auf die Schnelle
This commit is contained in:
parent
0e09b0c03e
commit
96408a4ca9
90 changed files with 1747 additions and 11 deletions
7
sb/scripts/get-weight-by-publishdate.sh
Executable file
7
sb/scripts/get-weight-by-publishdate.sh
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
FILE=$1
|
||||
WEIGHT="weight: -20500101"
|
||||
echo "working on >>"$FILE"<<"
|
||||
DETECTED_DATE=$(grep datePublished $FILE | sed -E 's/datePublished...(2024)-(..)-(..)./\1\2\3/')
|
||||
echo "weight to set: >>-"$DETECTED_DATE"<<"
|
||||
sed -i "s/weight: xxx/weight: -${DETECTED_DATE}/" $FILE
|
||||
Loading…
Add table
Add a link
Reference in a new issue