#!/bin/sh if [ -z "$1" ] then dir="." else dir=$1 fi for root in $(find -L $dir -name '.git' -type d | xargs -L 1 dirname ) do if [ -d $root/.git/task ] then echo "→ \033[1;4;33m"$root"\033[0m" (cd $root; git task 2>/dev/null | head -n -1 | sed -e '3d' ) fi done