Created
March 16, 2016 20:26
-
-
Save hiroshiro/ecf682e472fc531f0c9e to your computer and use it in GitHub Desktop.
メモしたすべてのmarkdownをepubに変える。
This file contains hidden or 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
#!/usr/bin/ruby | |
Dir::chdir(File.expand_path("~/Dropbox/memo/markdown")) | |
Dir::foreach('.') {|f| | |
s = File.basename(f,'.*') | |
system("pandoc -o ~/Dropbox/OneDrive/book/memo/#{s}.epub #{f}") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment