摘要: db2set配置: db2set DB2_ENABLE_LDAP=NO db2set DB2_ALTERNATE_GROUP_LOOKUP=GETGROUPLIST db2set DB2_RESTORE_GRANT_ADMIN_AUTHORITIES=ON db2set DB2_SKIPINSERT 阅读全文
posted @ 2016-10-31 11:46 hufangrui 阅读(4615) 评论(0) 推荐(0) 编辑
摘要: 1、将常用命令,设置为别名,方便记忆 alias listapp='db2 list applications' alias listappx='db2 list applications show detail' alias listtran='db2 list INDOUBT TRANSACTI 阅读全文
posted @ 2016-10-27 09:48 hufangrui 阅读(530) 评论(0) 推荐(0) 编辑
摘要: 1、小写字母转换大写字母 echo "aBcD"|tr 'a-z' 'A-Z' 2、大写字母转换小写字母 echo "aBcD"|tr 'A-Z' 'a-z' 3、当前脚本路径 basepath=$(cd `dirname $0`; pwd) 具体详细解释,请看http://www.cnblogs. 阅读全文
posted @ 2016-10-27 09:25 hufangrui 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 第一种:命令使用方法 例子1: cat test.txt 1 2 3 for i in $(cat test.txt) do echo $i done 例子2: for i in 1 2 3 4 do echo $i done 例子3: for i in $(seq 1 100) do echo $ 阅读全文
posted @ 2016-10-26 19:35 hufangrui 阅读(356) 评论(0) 推荐(0) 编辑