Search Results

Search: Posts Made By: Hitori
139,656
Posted By Hitori
^M must be removed from the end of line, so ...
^M must be removed from the end of line, so

$ sed 's/^M$//' input_file > output_file
139,656
Posted By Hitori
sed -i 's/$/\r/' myfile.csv I don't think...
sed -i 's/$/\r/' myfile.csv

I don't think that all implementations of sed has this feature. I've used GNU sed 4.1.4
139,656
Posted By Hitori
in vi you can replace all ^M characters with...
in vi you can replace all ^M characters with command
:%s/^M//g

(Note that to type ^M in vi type Ctrl-V Enter)

I realise that this note may be offensive for vi users :)
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 01:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy