如何\/通过|如下方式替换以下字符串:
bssapi_6 0\/0\/0\/9\/9
bssapi_6 0|0|0|9|9
Run Code Online (Sandbox Code Playgroud)
应用大量的转义:
sed 's/\\\//|/g' < inputfile
Run Code Online (Sandbox Code Playgroud)
通过@用作分隔符使其更具可读性:
sed 's@\\/@|@g' < inputfile
Run Code Online (Sandbox Code Playgroud)