![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Shell
二进制泥水匠
菜鸟成长记
展开
-
shell 调用oracle数据库方法
addStudent(){ LOGPATHFILE=/home/test/user/xxxx/log/bdfWarn.log UID=$1 UNAME=$2 UAGE=$3 USEX=$4 db_user= 这里填写用户名 db_password= 密码 db_server= 服务名 or SID table=user_info sql="insert i原创 2020-11-09 20:43:15 · 574 阅读 · 0 评论 -
unix shell取5个月前的时间
因为hp-unix 服务器上,date 命令还不够完善,没有 -d 选项,在做取多少时间之前的时间显得特不灵活。现有需求需要取的5个月之前的时间,实现代码如下:#!/bin/sh curY=`date +%Y` curM=`date +%m` i=5 #5个月 countdays=0 #5个月总天数 while [ $i -gt 0 ] #循环5次 do temp=`原创 2020-11-09 20:42:01 · 2751 阅读 · 0 评论