Created
April 18, 2022 03:14
-
-
Save fersilva16/222ed3a9f6520cc3e3c612885033ff37 to your computer and use it in GitHub Desktop.
Tranform MD files to ORG with fish and pandoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for f in **/*.md | |
pandoc -f markdown -t org -o $f.org $f; | |
rm $f | |
set n (basename $f .md) | |
set dn (string replace -a " " "-" $n) | |
mv $f.org (dirname $f)/(string lower $dn).org | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment