On 13/07/07, Christian Holm Christensen <cholm@nbi.dk> wrote:
Why not write a small C++ program that does what you want:
#include <iostream>
int main()
{
while (!std::cin.eof()) {
char c = std::cin.get();
if (std::cin.fail()) break;
if (c == 0302 || c == 0240) continue;
std::cout.put(c);
}
return 0;
}
If it's going to be that kind of party, here's a Perlism to remove DOS newlines:
perl -pi -e 's/\x0d\x0a/\x0a/' filewithdos
- Jordi G. H.