练习
1.如何显示“The year is 2016.Today is 26.”为两行?
echo -e "The year is 2016.\nToday is 26."
2.使用date单独获取系统当前的年份、月份、日、小时、分钟、秒
date +%Y //显示年,其他类似
1.如何显示“The year is 2016.Today is 26.”为两行?
echo -e "The year is 2016.\nToday is 26."
2.使用date单独获取系统当前的年份、月份、日、小时、分钟、秒
date +%Y //显示年,其他类似