shell/基本脚本/反引号的使用.sh

6 lines
146 B
Bash
Raw Normal View History

2016-05-13 21:42:54 +08:00
#!/bin/bash
2018-05-24 13:03:07 +08:00
#using the backtick character 会把反引号里面当作一条命令来执行
2016-05-13 21:42:54 +08:00
testing=`date`
echo "The date and time are:$testing"