version plus courte
This commit is contained in:
parent
caf09f1e22
commit
658a980db6
|
@ -876,7 +876,7 @@ done
|
||||||
grep CHARSET= *txt
|
grep CHARSET= *txt
|
||||||
|
|
||||||
for file in *.txt; do
|
for file in *.txt; do
|
||||||
tablename=`basename $file .txt` #tablename=${file%.*}
|
tablename=$(basename $file .txt)
|
||||||
echo "LOAD DATA INFILE '$PWD/$file' INTO TABLE $tablename" CHARACTER SET utf8 | mysql $db
|
echo "LOAD DATA INFILE '$PWD/$file' INTO TABLE $tablename" CHARACTER SET utf8 | mysql $db
|
||||||
done
|
done
|
||||||
~~~
|
~~~
|
||||||
|
|
Loading…
Reference in a new issue