diff --git a/examples/after_cloning.md b/examples/after_cloning.md index 2fc1ac2..6e2526f 100644 --- a/examples/after_cloning.md +++ b/examples/after_cloning.md @@ -2,14 +2,20 @@ A few ways to use ghorg after cloning repos. Please add yours below if you have one! -> dump all test.sh files from ghorg dir into a results file +> Dump all test.sh files from ghorg dir into a results file ``` find $HOME/Desktop/ghorg -name "test.sh" -exec cat {} \; > results ``` -> find any use of gcloud in a file called test.sh +> Find any use of gcloud in a file called test.sh ``` find $HOME/Desktop/ghorg -name "test.sh" | xargs grep -i "gcloud" ``` + +> Sort cloned repos by size. Change directories into a clone dir + +``` +du -d 1 . | sort -nr | cut -f2- | xargs du -hs +```