Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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