读书人

片言1

发布时间: 2012-12-27 10:17:10 作者: rapoo

只言片语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;

读书人网 >编程

热点推荐