Removing Control Characters from a File

后端 未结 4 1823
野的像风
野的像风 2020-12-03 05:20

I want to delete all the control characters from my file using linux bash commands.

There are some control characters like EOF (0x1A) especially which are causing th

4条回答
  •  -上瘾入骨i
    2020-12-03 05:32

    Based on this answer on unix.stackexchange, this should do the trick:

    $ cat scriptfile.raw | col -b > scriptfile.clean
    

提交回复
热议问题