反引号的使用

5年以前  |  阅读数:552 次  |  编程语言:Shell 
#!/bin/bash
#using the backtick character  会把反引号里面当作一条命令来执行

testing=`date`
echo "The date and time are:$testing"

Copyright© 2013-2020

All Rights Reserved 京ICP备2023019179号-8