Skip to content

Instantly share code, notes, and snippets.

@ross-nordstrom
ross-nordstrom / fetch.sh
Last active December 25, 2015 02:39
Script to "git fetch" all repos with a given prefix
#! /bin/bash
TargetDir="*"
DateStamp=$(date +"%Y%m%d");
for Dir in $(find $TargetDir* -maxdepth 0 -type d );
do
FolderName=$(basename $Dir);
cd $FolderName
pwd