shell - How to specify what files you want to read from different directories -


i have files in different directories. files named profiles-tc_0974950_30190-r-00002.avro , others named profiles_060415084722_30129-r-00012.avro. when run script want able specify files start profiles-tc , other times when not want read files.

when run script 1 of 2 cases have following:

bash move_files2.sh profile/generate/work/profiles-tc*

however, when run it's reading 1 file.

files=$1  f in $files    echo "$f"    echo "processing $f file..." done 

quoting param can fix problem:

bash move_files2.sh "profile/generate/work/profiles-tc*"  

Comments

Popular posts from this blog

xslt - Substring before throwing error -

Google Cloud Bigtable Durability/Availability Guarantees -

c# - Call C++ Native DLL in Managed Code -