#!/bin/bash # `` 使用示例 echo "current datetime is `date +"%y年-%m月-%d日 %H:%M:%S"`" # 转义空格 echo "current datetime is `date +%y年-%m月-%d日\ \ %H:%M:%S`"