How do I remove newlines from a text file?

后端 未结 19 2378
遇见更好的自我
遇见更好的自我 2020-11-29 17:34

I have the following data, and I need to put it all into one line.

I have this:

22791

;

14336

;

22821

;

34653

;

21491

;

25522

;

33238

;
         


        
19条回答
  •  清酒与你
    2020-11-29 18:17

    Nerd fact: use ASCII instead.

    tr -d '\012' < filename.extension   
    

    (Edited cause i didn't see the friggin' answer that had same solution, only difference was that mine had ASCII)

提交回复
热议问题