执行以下语句的结果,分析单引号和双引号有何区别?#!/bin/bashurl="http://w.pythonabc.com"website1='SHELL脚本学习:${url}'website2="SHELL脚本学习:${url}"echo $website1echo $website2
举一反三
- 写出下面代码输入结果?#!/bin/bashurl="http://www.hngzy.com/"website1='SHELL学习:${url}'website2="SHELL学习:${url}"echo $website1echo $website2
- 下列shell脚本中的case语句,语法正确的是() A: case $1 in 1) echo "Monday" ;; 2) echo "Tuesday" ;; *) echo "Input error" ;; B: case $1 in 1) echo "Monday" ; 2) echo "Tuesday" ; *) echo "Input error" ; C: case $1 in 1) echo "Monday" ;; 2) echo "Tuesday" ;; *) echo "Input error" ;; esac D: case $1 in 1) echo "Monday" ;; 2) echo "Tuesday" ;; *) echo "Input error" ;; end
- Shell脚本编程中,在使用echo命令打印变量时,使用单引号或双引号引起变量,对打印结果没有影响。
- 10. 哪种不是shell中的引号: A: 正引号 B: 单引号 C: 双引号 D: 反引号
- f5. Which of the following could be the title of the passage? A. Introduction to PowerShow Website B. Developing Presentation Skills C.setting up aPersonal Website D.Future of PoweShow.com A: introduction to Power show website B: developing presentation skills C: setting up a personal website D: future of power show. com