(for f in `cat full_path_list_file`; do dirname $f; done) | sort -u