#! /bin/bash time=`date ‘+%Y-%m-%d %H:%M:%S‘` # echo $time sql=‘SELECT `username`, `password` FROM `user` WHERE `expire_date` < "‘${time}‘" and `remaining_seconds` > 0;‘ echo $sql
Shell 获取当前时间,布布扣,bubuko.com
Shell 获取当前时间
原文:http://www.cnblogs.com/debmzhang/p/3925215.html