Update after_cloning.md

This commit is contained in:
Jay Gabriels
2021-12-12 08:27:36 -08:00
parent 14ae319e45
commit d992e650f0

View File

@@ -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
```