qfedu-linux-advanced-level/day1/homework/h1.sh

6 lines
190 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 编写一个Shell脚本输出当前日期和时间。
# 【要求】按 “xxxx年xx月xx日 xx时xx分xx秒” 格式输出
echo `date +"%Y年%m月%d日 %H时%M分%S秒"`