Skip to content

oldratlee/bash-string-escape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Bash String Escape

提供用Bash字符串转义的工具方法。

Bash中使用提供字符串会需要转义,不能直接把字符串放参数位置上。

如要输出字符串:
2 space a double quotation mark " a single quotation mark ' end!

需要执行的命令如下:

echo '2 space  a double quotation mark " a single quotation mark '\'' end!'

即在命令行上,要提供字符串是:
'2 space a double quotation mark " a single quotation mark '\'' end!'

这个库提供方法来从源字符串来生成Bash要使用的字符串。

About

java lib for bash string escape

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages