linux - How can I loop through similar files and then choose another file that corresponds to the file chosen during the loop? -


for shell script how can loop through similar files , while i'm looping through these files choose file corresponds 1 chosen loop @ time?

here of code:

files=(/home/practice/sm_data.*.model)  f in "${files[@]}"          infile1="${files[@]}"         infile2= (/home/practice/sm_data.*.source) done 

so, first time goes through loop want choose sm_data.1.model (which here) based on want find sm_data.1.source.

any appreciated!


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -