#!/bin/bash set -xe cd /book #convert md to ipynb for file in */{README,README\.cn}.md ; do notedown $file > ${file%.*}.ipynb done