社区所有版块导航
Python
python开源   Django   Python   DjangoApp   pycharm  
DATA
docker   Elasticsearch  
aigc
aigc   chatgpt  
WEB开发
linux   MongoDB   Redis   DATABASE   NGINX   其他Web框架   web工具   zookeeper   tornado   NoSql   Bootstrap   js   peewee   Git   bottle   IE   MQ   Jquery  
机器学习
机器学习算法  
Python88.com
反馈   公告   社区推广  
产品
短视频  
印度
印度  
私信  •  关注

Yann Vernier

Yann Vernier 最近创建的主题
Yann Vernier 最近回复了
11 年前
回复了 Yann Vernier 创建的主题 » 在远程计算机上执行mysql查询[重复]

这不是 ssh awk 处理引号时,它就是shell(而且它们必须防止shell处理其他字符,特别是 $ )。不支持嵌套它们(尽管其他结构,如 $() 甚至在包含引号时也可以嵌套),因此需要分别转义单引号。以下是几种方法:

$ echo 'Don'"'"'t mess with this apostrophe!'
Don't mess with this apostrophe!
$ echo 'Don'\''t mess with this apostrophe!'
Don't mess with this apostrophe!