Skip to content

Instantly share code, notes, and snippets.

@semirenko
semirenko / nbgrep
Last active Feb 17, 2019 — forked from jbarratt/nbgrep
'nbgrep', search the code of all your ipython notebooks
View nbgrep
#!/bin/bash
# usage: nbgrep 'pattern'
SEARCHPATH=~/code/
# 'jq' technique lifted with gratitude
# from https://gist.github.com/mlgill/5c55253a3bc84a96addf
# Break on newlines instead of any whitespace