Дана 24/05/11 10:36PM, Страхиња Радић написа: > cd "$target" && > find "$dirs" | sort | uniq > "$target_list"
Lapsus: the variable dirs should not be quoted here if it contains more than one directory to be passed to find. It is vulnerable to directory names containing spaces and weird characters, however. So: cd "$target" && find $dirs | sort | uniq > "$target_list"