Skip to content

Instantly share code, notes, and snippets.

@fersilva16
Created April 18, 2022 03:14
Show Gist options
  • Save fersilva16/222ed3a9f6520cc3e3c612885033ff37 to your computer and use it in GitHub Desktop.
Save fersilva16/222ed3a9f6520cc3e3c612885033ff37 to your computer and use it in GitHub Desktop.
Tranform MD files to ORG with fish and pandoc
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