diff --git a/dna_list.sh b/dna_list.sh index 2dd22ac2ec69e624269c535521b77399cad4f042..8f830901d79fd4c2f359ceb234026b8a77e05a0b 100755 --- a/dna_list.sh +++ b/dna_list.sh @@ -46,7 +46,8 @@ fi doc_params_list=(creation_date doc_name doc_type color height width fragment_number channel_coding start_sequence start_primer stop_primer) -for dir_name in $(find "$container_path"/* -maxdepth 0 -type d -printf "%f\n") ; do +#loop over names of directories in the container (should only be "0","1","2",...) +for dir_name in $(find "$container_path" -maxdepth 1 -mindepth 1 -type d -exec basename {} ';') ; do #read the metadata for each stored document and asign it to variables printf "$dir_name :\n" for doc_param in "${doc_params_list[@]}" ; do