#!/bin/bash for i in $1/* do for user in $i/* do echo $user done done exit 0