当前位置:网站首页>curl命令行的地址里用单引号或者双引号的原因
curl命令行的地址里用单引号或者双引号的原因
2022-08-06 03:35:00 【大叶子不小】
curl -v http://xxxx/download/yyy?t=123&key=456
由于url里有&,使用&会使进程后台运行,必须对&进行转义,加单引号或者双引号。
curl -v ‘http://xxxx/download/yyy?t=123&key=456’
加单引号和双引号的区别:
单引号字符串的限制:
单引号里的任何字符都会原样输出,单引号字符串中的变量是无效的
单引号字串中不能出现单引号(对单引号使用转义符后也不行)
双引号
your_name=‘qinjx’
str=“Hello, I know your are “$your_name”! \n”
双引号里可以有变量
双引号里可以出现转义字符
references
[1]https://blog.csdn.net/sunnyboy1018/article/details/52447810
[2]https://github.com/qinjx/30min_guides/blob/master/shell.md
————————————————
版权声明:本文为CSDN博主「willinux」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/willinux20130812/article/details/87179303
边栏推荐
猜你喜欢

xctf attack and defense world Web master advanced area easytornado

Internet Security Aid: Free MD5 Decryption Website

xctf攻防世界 Web高手进阶区 easytornado

LeetCode:623. 在二叉树中增加一行【DFS or BFS】
![[Deep Learning 21 Days Learning Challenge] Memo: Model Reuse - Model Saving and Loading](/img/1d/3b076809692c81c5446a3a93d8fdfd.png)
[Deep Learning 21 Days Learning Challenge] Memo: Model Reuse - Model Saving and Loading

jvm: synchronized关键字不同用法产生不同的字节码

椭圆曲线介绍(四):椭圆曲线安全性,与RSA对比

greenDAO of Android database framework

学习MySQL的第三天:函数(基础篇)

Literature Reading---Analysis of Genome Haplotypes and Genome Stability and Creeping of Common Bermudagrass Yangjiang
随机推荐
Develop SQL editors with Monaco Editor
谷歌广告后台设置的投放语言,如果设置英语,就意味着用的人是使用英语吗?
什么是Egg.js,它有什么特性,egg框架的安装,路由的定义,控制器Controller是什么,CORS配置,JSONP配置,get请求,post请求
leetcode:20. Valid parentheses
【LaTex】 - How to use the alignment symbol &, the usage of the newline character \\, how to solve the Misplaced & error
经典sql例子
AC8015笔记
【深度学习21天学习挑战赛】备忘篇:模型复用——模型的保存与加载
Which browser has fewer ads?Multi-Royal Safe Browser Light Experience
Mysql installation ask for answers
6.软件测试-----自动化测试之unittest框架
我所理解liunx下的原子操作
泡沫填充轮胎
2018HBCPC部分题解
Jvm: synchronized锁定谁?
什么是固体充气轮胎(solid pneumatic tyres)?
谷歌账户暂停三个月重新启用,谷歌账户暂停三个月重新启用,转化目标是否有效?
What are solid pneumatic tires?
Qt development experience tips 231-235
xctf attack and defense world web master advanced area command_execution