Skip to content

Instantly share code, notes, and snippets.

@dodocat
Created October 13, 2016 09:54
Show Gist options
  • Select an option

  • Save dodocat/2d1a9ba820ea736676cbf9049c50a103 to your computer and use it in GitHub Desktop.

Select an option

Save dodocat/2d1a9ba820ea736676cbf9049c50a103 to your computer and use it in GitHub Desktop.

get project list from a repo

repo forall -c 'echo $REPO_PATH:$REPO_PROJECT > path_list.txt'

filter non-exist path

 cat path.txt | while read p; do a=`echo $p | cut -d ':' -f1`; b=`echo $p | cut -d ':' -f2`; if [ -d $a ]; then echo $a:$b; fi; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment