[code] #!/bin/bash DEPENDS=`lsh find_depends $1` for n in $DEPENDS; do DEPENDS="$DEPENDS `lsh find_depends $n`" done lsh sort_by_dependency $DEPENDS [/code] i'd call it... lvu list_depends ;) gr,S.