echo "aaa.txt" | sed -e "s/\.txt//g"
echoで改行しない
echo -n 999
grepで指定文字列を除外する
cat *.txt | grep -v "test"
auto_incrementの値を確認、変更する
SELECT auto_increment FROM information_schema.tables WHERE table_name = 'aaa' ;
ALTER TABLE aaa AUTO_INCREMENT = 1 ;
echo -n 999
cat *.txt | grep -v "test"
SELECT auto_increment FROM information_schema.tables WHERE table_name = 'aaa' ;
ALTER TABLE aaa AUTO_INCREMENT = 1 ;