#!/bin/bash

#set -x

dirs=($HOME/src/cloud/*)
echo $files
count=${#dirs[@]}

for ((i = 0; i < count; i += 1)); do
    for ((j = i; j < count; j++)); do
        cd ${dirs[$j]}
        git checkout *.txt
        cd ..
    done
done
