7 lines
176 B
Bash
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`"
|