in reply to extracting file names
(for f in `cat full_path_list_file`; do dirname $f; done) | sort -u [download]