#!/bin/bash awk '/^ *'"$1"' */{print $2}' ~/directories.txt