Search Results

Search: Posts Made By: bakunin
12,945
Posted By bakunin
If you want to remove lines ended by a ^M...
If you want to remove lines ended by a ^M character:

sed '/^M$/d' /pathto/infile > /path/to/outfile

In case you want to delete only the character itself, but not the line:

sed 's/^M//g'...
Showing results 1 to 1 of 1

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