find . -maxdepth 1 -type d -print -execdir git --git-dir={}/.git --work-tree=$PWD/{} pull origin master \;
- find . searches the current directory
- maxdepth 1 for a maximum depth of one sub-directory
- type d to find directories, not files
- execdir {} ; runs a custom command for every find
- git --git-dir={}/.git --work-tree=$PWD/{} pull git pulls the individual directories
sudo lsof -n -i :3000 | grep LISTEN