shell date
在linux下获取时间字符串命令 date# 以yyyymmdd格式输出23天之前现在这个时刻的时间$ date +%Y%m%d –date=’23 days ago’$ date -uThu Sep 28 09:32:04 UTC 2006$ date -RThu, 28 Sep 2006 17:32:28 +0800# 测...
shell测试
搜集的一些资料,条件判断-b file 若文件存在且是一个块特殊文件,则为真-c file &nbs...
shell 实现冒泡排序.
shell数组介绍://数组变量定义:$ arr=(1 3 6 8 2 5 9 0 7 4)// 默认获取第一个元素$ echo $arr // 通过下标访问,下面取的数组第二个元素,shell数组下标是从0开始$ echo&nb...
linux脚本里代替转储临时文件的方法.
#!/bash [ -f /temp/rman_log.log ] && rm -rf /temp/rman_log.log if [ -f $ORACLE_HOME/bin/rman -a -d /home/rman_backup/ ] then $ORACLE_HOME/bin/rman target /...