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

editing control characters from file

Thread Next
From:
Johnson, Shaunn
Date:
December 19, 2002 09:22
Subject:
editing control characters from file
Message ID:
73309C2FDD95D11192E60008C7B1D5BB04C743F1@snt452.corp.bcbsm.com
Howdy:

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

[snip]

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

[/snip]

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?

Thanks!

-X

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About