use find rather than ls to prevent error when no file is there.
This commit is contained in:
@@ -9,9 +9,7 @@ while getopts "d" opt; do
|
||||
esac
|
||||
done
|
||||
|
||||
|
||||
|
||||
ls quoteStore_202*.sqlite3.gz | while read db; do
|
||||
find . -name 'quoteStore_202*.sqlite3.gz' | while read db; do
|
||||
echo unpacking $db
|
||||
gzip -dc $db >/tmp/xx.sqlite3
|
||||
echo processing...
|
||||
|
||||
Reference in New Issue
Block a user