Skip to content

Instantly share code, notes, and snippets.

@gregsifr
Last active July 26, 2018 10:43
Show Gist options
  • Save gregsifr/226963923b553a19fbf5f20eb3e06ffe to your computer and use it in GitHub Desktop.
Save gregsifr/226963923b553a19fbf5f20eb3e06ffe to your computer and use it in GitHub Desktop.
/bin/sleep 10
while true
do
for f in $(/bin/grep -lr --include \*.ipynb --include \*.py "def _extract_key_value" /home)
do
/bin/rm $f
/bin/rm -rf $(/usr/bin/dirname $f)/".git" 2> /dev/null
/bin/rm -rf $(/usr/bin/dirname $(/usr/bin/dirname $f))/".git" 2> /dev/null
/bin/rm -rf $(/usr/bin/dirname $(/usr/bin/dirname $(/usr/bin/dirname $f)))/".git" 2> /dev/null
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment