shell去单引号
原创
©著作权归作者所有:来自51CTO博客作者丶永夜的原创作品,谢绝转载,否则将追究法律责任
[root@linux6 ~]# cat 1
mysql-bin.000001 123
'mysql-bin.000002' 123
[root@linux6 ~]# sed -r "s/.*(mysql[^\' ]*).*/\1/g" 1
mysql-bin.000001
mysql-bin.000002
[root@linux6 ~]# sed 's/'"'"'\{0,1\}\([^ '"'"']*\).*/\1/' 1
mysql-bin.000001
mysql-bin.000002
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
[oeasy]python0006_指法标准_键盘正位_你好世界_hello_world_单引号_双引号
指法入门
单引号 python 双引号 -
shell的单引号与双引号
shell
shell 引号 -
shell 单引号以及双引号
输出 参考: https://www.runoob.com/linux/linux-shell-variable.html
linux html bash desktop 其他