I'd actually like to be able to do two things (in PERL). One is to strip a file of all non-printable characters only throughout the file. The other (instead of removing every character) is remove entire lines of which contain 1 or more non-printable characters (even if those lines have printable characters in them).
Oh, I wonder if there is a way to run through the file and instead of merely deleting all lines with non-printables in them, to dump those lines into another separate file? I guess I'd have to do the "reverse" of my above question then, which is strip the file of any lines that DO NOT contain at least 1 non-printable, and then simply do a save-as on the result....
::edit::
oh by the way, some files have NULL characters in them and UltraEdit opens those as BINARY files even though they are actually 99.9% text. Is there a way to prevent it from opening files in that mode?


