Skip to content

Instantly share code, notes, and snippets.

@kevinrobinson
Created May 19, 2016 22:48
Show Gist options
  • Save kevinrobinson/5c55d540f214db5e58edfdc0b90a6efc to your computer and use it in GitHub Desktop.
Save kevinrobinson/5c55d540f214db5e58edfdc0b90a6efc to your computer and use it in GitHub Desktop.
Script to generated JSON for TensorFlow codebase visualization
WORKING_DIR=~/Desktop # or whatever
du -a tensorflow > $WORKING_DIR/du-out.txt
cat $WORKING_DIR/du-out.txt \
| grep -v node_modules \
| grep -v tensorboard/ \
| grep -v examples/ \
| grep -v models/ \
| grep -v tools/ \
| grep -v g3doc/ \
> $WORKING_DIR/du-out-stripped.txt
wc -l $WORKING_DIR/du-out-stripped.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment