On 13/07/07, Christian Holm Christensen <[EMAIL PROTECTED]> 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.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to