2012年11月2日 星期五

[Bash] How to use sed to understand slash (\) in the string


[Bash] How to use sed to understand slash (\) in the string



If I have \ (slash) in the string.

But everytime I use \ command, the sed will recognize this is a command not a string.

I want \ (slash) become my part of string.



So I must use like \\\.

Two slash (\\) + one slash (\) will let slash become string.



Reference :


Related Posts:

0 意見:

張貼留言