片言1

只言片语1mysql:-- 存在的话就删掉drop table if exists TABLE_NAMEshell:#判断非空文件[ -s $file ] #判

只言片语1
mysql:

-- 存在的话就删掉drop table if exists TABLE_NAME;


shell:

#判断非空文件[ -s $file ] #判断非空字符串[ -z $str ] #位运算echo 9934234 |awk '{print rshift(and($1,99),3) }';#局部变量,注意subshell,export等作用域function inner(){local ifor((i=0;i<10;i++))do  # do sth;donefor((i=0;i<10;i++))do  innerdone#shell执行mysql,丢弃column名称./mysql -Ne"select 1">cc;