develooper Front page | perl.beginners | Postings from December 2002

editing control characters from file

Thread Next
Johnson, Shaunn
December 19, 2002 09:22
editing control characters from file
Message ID:

I have a text file that I'm trying to use, but, it has control characters
at the end.


test.txt: ASCII text, with very long lines, with NEL line terminators


I've tried to use 'sed' and 'tr' to remove NEL and just have
an ASCII text.  I've even used dos2unix, but that doesn't
seem to help.

I thought I could do it with chomp / chop, but I don't think I'm
doing it properly.

How can I remove things like CL/LF, NEL, etc from a
text file?



Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About