sed命令:some_var='echo $some_var | sed -e s/ \\\./ \\\\\\\./g' 7个斜杠some_var='echo $some_var | sed -e s/ [$]/ \\\\\\\\$/g' 8个斜杠

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/29 19:16:39
sed命令:some_var='echo $some_var | sed -e s/ \\\./ \\\\\\\./g' 7个斜杠some_var='echo $some_var | sed -e s/ [$]/ \\\\\\\\$/g' 8个斜杠
x͑J@_e\jrT$E\A/ЀHbOdeGa5IHc3B x&N0I;rҷ&CeoJyj[W ', Ko=D[^,6/l=7D

sed命令:some_var='echo $some_var | sed -e s/ \\\./ \\\\\\\./g' 7个斜杠some_var='echo $some_var | sed -e s/ [$]/ \\\\\\\\$/g' 8个斜杠
sed命令:some_var='echo $some_var | sed -e s/ \\\./ \\\\\\\./g' 7个斜杠
some_var='echo $some_var | sed -e s/ [$]/ \\\\\\\\$/g' 8个斜杠

sed命令:some_var='echo $some_var | sed -e s/ \\\./ \\\\\\\./g' 7个斜杠some_var='echo $some_var | sed -e s/ [$]/ \\\\\\\\$/g' 8个斜杠
s/\\\./\\\\\\\./g 表示把’\.‘替换为'\\\.'
因为“\”和“.”自身有转义的意思,\\表示去除第二个\的特殊含义,\.表示去除.的特殊含义.所以\\\.实际传给sed的直是\.
下面的那个也是这样