diff --git a/nbs/migrating.ipynb b/nbs/migrating.ipynb index f8c5e60c3..28c16a738 100644 --- a/nbs/migrating.ipynb +++ b/nbs/migrating.ipynb @@ -138,13 +138,11 @@ "A number of directives have changed names. We'll use `perl` to fix them. Run these lines in the root of your repo:\n", "\n", "```bash\n", - "[[ $SHELL = *bash ]] && shopt -s globstar\n", - "\n", - "perl -pi -e 's/#\\|\\s*hide_input/#| echo: false/' **/*.ipynb\n", - "perl -pi -e 's/#\\|\\s*hide_output/#| output: false/' **/*.ipynb\n", - "perl -pi -e 's/#\\|\\s*skip/#| eval: false/' **/*.ipynb\n", - "perl -pi -e 's/from nbdev.export import notebook2script/from nbdev import nbdev_export/' **/*.ipynb\n", - "perl -pi -e 's/notebook2script/nbdev_export/' **/*.ipynb\n", + "find . -name '*.ipynb' -exec perl -pi -e 's/#\\|\\s*hide_input/#| echo: false/' {} +\n", + "find . -name '*.ipynb' -exec perl -pi -e 's/#\\|\\s*hide_output/#| output: false/' {} +\n", + "find . -name '*.ipynb' -exec perl -pi -e 's/#\\|\\s*skip/#| eval: false/' {} +\n", + "find . -name '*.ipynb' -exec perl -pi -e 's/from nbdev.export import notebook2script/from nbdev import nbdev_export/' {} +\n", + "find . -name '*.ipynb' -exec perl -pi -e 's/notebook2script/nbdev_export/' {} +\n", "```\n", "\n", "These change the following directives to use functionality built into Quarto:\n",