I need a bash command that will convert a string to something that is escaped. Here's an example:
echo "helloworld" | escape | someprog
Where the escape command makes "helloworld"
into "hello\world"
. Then, someprog can use "hello\world"
as it expects. Of course, this is a simplified example of what I will really be doing.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…