convert_markdown_into_ipynb.sh 193 字节
Newer Older
G
gongweibao 已提交
1 2 3
#!/bin/sh
for file in $@ ; do
	/tmp/go/bin/markdown-to-ipynb < $file > ${file%.*}".ipynb"
G
gongweibao 已提交
4
    if [ $? -ne 0 ]; then
G
gongweibao 已提交
5
        echo >&2 "markdown-to-ipynb $file error"
G
gongweibao 已提交
6 7 8 9
        exit 1
    fi
done