linux-tutorial/codes/shell/基本脚本/反引号的使用.sh

7 lines
155 B
Bash

#!/usr/bin/env bash
#using the backtick character 会把反引号里面当作一条命令来执行
testing=`date`
echo "The date and time are:$testing"