随笔分类 -  Linux

摘要:一、系统环境和sphinx版本号 centos 阅读全文
posted @ 2020-07-23 13:41 youy
摘要:#!/bin/sh #根据当前时间获取当前月份的第一天零点时间戳和下一月份零点时间戳 # ./getMonth.sh #根据输入的时间戳 #./getMonth.sh -t 1345600232 #根据输入的日期 #./getMonth.sh -d 2012-12 if [ $1 ] then if [ $1 = '-t' ] then if [ $2 ]... 阅读全文
posted @ 2018-08-20 15:41 youy
摘要:#!/bin/sh #根据当前时间获取本周的周一零点到下周一零点时间 #./getWeek.sh #根据传入的时间戳获取 #./getWeek.sh -t 12356783 #根据传入的日期获取 #./getWeek.sh -d 2015-12-05 oneSeconds=86400 sevenSeconds=`expr $oneSeconds \* 7 ` if [ $1 ] then... 阅读全文
posted @ 2018-08-20 15:39 youy