0

So I'll to the point. I have an csv file, and when I opened it on excel and on text editor it's showing the different line number. And I think it's because the \r or \n special character, and the different way to read file of excel and text editor.

So I want to try manipulate the file. I look with hexdump on ubuntu, there's a 0a hexadecimal (\n) or new line character on it. I want to remove it with sed function on ubuntu but it cannot be remove with that. Anyone know how to do it? Give me suggestion please....Thanks

Kenny Basuki
  • 625
  • 4
  • 11
  • 27

1 Answers1

0

To remove \n:

tr -d '\n' < myfile
Bohemian
  • 412,405
  • 93
  • 575
  • 722