Because I use macosx a lot, I also sometimes see text files that use just CR instead of LF. Then there are cases where a file isn't consistent in terms of its CR vs. LF vs. CRLF behavior, or where a file wasn't originally text data, but has been mishandled (corrupted by a "unix-to-dos" text-mode conversion as if it were text). It can get pretty maddening, so I wrote a script just to report diagnostics, and posted it here in a SoPW thread several years ago: Re: How to determine type of line endings in a text file from within a scripts/[\r\n]+$//
It boils down to the problem of getting to know the data you're dealing with, and taking appropriate steps to give it the treatment it needs.
In reply to Re: While i am executing a perl script in that one file will get as ouput in that ^M is priting and the actual output is getting disabled?
by graff
in thread While i am executing a perl script in that one file will get as ouput in that ^M is priting and the actual output is getting disabled?
by himanshu.chauhan
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |