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

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -