4
刪除非打印字符似乎不適用於回車(控制鍵^ M)。通過Cygwin對非打印字符進行縮放
[email protected] ~
$ head -3 test.ctl
row 1
row 2
row 3
[email protected] ~
$ head -3 test.ctl | cat -nv
1 row 1^M
2 row 2^M
3 row 3
[email protected] ~
$ head -3 test.ctl | grep '[^[:print:]]'
[email protected] ~
$ head -3 test.ctl | grep '[[:cntrl:]]'
[email protected] ~