https://github.com/oldratlee/bash-string-escape
java lib for bash string escape
https://github.com/oldratlee/bash-string-escape
Last synced: 9 months ago
JSON representation
java lib for bash string escape
- Host: GitHub
- URL: https://github.com/oldratlee/bash-string-escape
- Owner: oldratlee
- Created: 2013-08-03T08:40:52.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-03-19T13:48:37.000Z (almost 12 years ago)
- Last Synced: 2025-03-06T10:03:01.245Z (10 months ago)
- Language: Java
- Size: 211 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Bash String Escape
================================
提供用`Bash`字符串转义的工具方法。
在`Bash`中使用提供字符串会需要转义,不能直接把字符串放参数位置上。
如要输出字符串:
`2 space a double quotation mark " a single quotation mark ' end!`
需要执行的命令如下:
```bash
echo '2 space a double quotation mark " a single quotation mark '\'' end!'
```
即在命令行上,要提供字符串是:
`'2 space a double quotation mark " a single quotation mark '\'' end!'`
这个库提供方法来从源字符串来生成`Bash`要使用的字符串。