qfedu-linux-advanced-level/day1/d12.sh

7 lines
176 B
Bash

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