replace \n with space in csv file
Hi all, I have csv file with the some of the rows with "\n" values, and I wanted to replace "\n" with just empty space " ". How can i achieve it. I tried the below but doesnot work. can anyone help?
Code:
sed 's/\/n/ /g' "$input_file" > "$output_file" Code:
Name,Age,Location |
/n and \n are two different things. Which one do you want to replace?
You can use a different separator: Code:
sed 's!/n! !g' infile > outfile |
nm - too slow typing ... :doh:
|
Quote:
|
does it work for you? In that case you might want to mark the thread as solved.
And also if you want to say thanks just click on yes |
Sample scrip using bash.exe at windows
Code:
#!/bin/bash |
All times are GMT -5. The time now is 03:34 AM. |