我需要将每次出现的!更改:为组文件中的字段分隔符.
sed 's/!/:/g' filename > newfilename
Run Code Online (Sandbox Code Playgroud)
但我得到错误/: Event not found?
你正在使用csh所以!正在被解释为修复此转义!或只是使用bash:
sed 's/\!/:/g' file > outfile
Run Code Online (Sandbox Code Playgroud)
随着csh对! 用于命令历史参考和它的作品甚至一对引号内'或引号",除非用反斜杠逃脱\.
| 归档时间: |
|
| 查看次数: |
3821 次 |
| 最近记录: |