How to remove all white spaces from a given text file

前端 未结 11 1845
无人共我
无人共我 2020-12-13 01:34

I want to remove all the white spaces from a given text file. Is there any shell command available for this ? Or, how to use sed for this purpose.

I wa

11条回答
  •  抹茶落季
    2020-12-13 02:12

    hmm...seems like something on the order of sed -e "s/[ \t\n\r\v]//g" < hello.txt should be in the right ballpark (seems to work under cygwin in any case).

提交回复
热议问题