You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
395 B
Bash

2 years ago
#! /bin/sh
# NOTES=$(find Resources/blog/ type/ f -not -path "*drafts/*" -name "*.md" | basename {}|cut -d"." -f1| xargs -n1 mkdir -p "cicd_blog/contents/posts/{}")
NOTES=$(find Resources/blog/ -type f -not -path "*drafts/*" -name "*.md" )
for n in $NOTES; do
BASE=$(basename $n|cut -d'.' -f1)
mkdir -vp /tmp/blog/content/posts/$BASE
cp -v $n /tmp/blog/content/posts/$BASE/index.md
2 years ago
done