
- 帖子
- 15
- 积分
- 37
- 技术
- 0
- 捐助
- 0
- 注册时间
- 2010-5-28
|
假设一个文件333 内容如下
<123>
<123>kxid<123>
<123>kxid<123>
kxid
我shell的命令是
[root@www tmp]# sed 's/kxid/$(uuidgen &)/g;s/.*/echo &/e' 333
sh: -c: line 0: syntax error near unexpected token `123'
sh: -c: line 0: `echo <123>'
sh: -c: line 0: syntax error near unexpected token `123'
sh: -c: line 0: `echo <123>$(uuidgen kxid)<123>'
sh: -c: line 0: syntax error near unexpected token `123'
sh: -c: line 0: `echo <123>$(uuidgen kxid)<123>'
53fcb936-fe7e-4b9f-a914-e7949bcbd329
最终发现,有<>的行全部都出错 |
|