I have a file which is having some carriage return in one of the field for which single line is coming in multiple lines.
I want to combine all those multiple lines of that field into one line.
Eg:
Input:
Id, Name, Location, Comments, Dept
2, John, US, I am from US.
I live in NC.
I am working on Unix, Finance
3, Jack, UK, I am from UK.
I live in London, Accounts
Desired Output:
Id, Name, Location, Comments, Dept
2, John, US, I am from US.I live in NC.I am working on Unix, Finance
3, Jack, UK, I am from UK.I live in London, Accounts
Any solution for this would be of really helpful.. Thanks.
This is designned to make normal unix line terminators visible and carriage-returns visible. We need to know that they are actually carriage-return characters.
Id, Name, Location, Comments, Dept$
2, John, US, I am from US.$
I live in NC.$
I am working on Unix, Finance$
3, Jack, UK, I am from UK.$
I live in London, Accounts$