Problems? Is your data what you think it is? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I hate DOS \r\n (carriage return, newline) file formats. Each line is all broken and crappy. So, I hacked up this little guy for my unix boxen around the world.
Couple comments: This thing just dumps the data back to the screen. You need to capture it yourself. It is a preference for me because I many times don't want to overwrite the file I am editting. If you don't like this, change it. Secondly, this thing does some crazy stuff. I hate blank lines. This thing makes sure there are none. Have code you want formatted nicely? It will break it in a manner that only vroom could understand. So, its quick N dirty to the max. Update Chromatic offered an easier way to do this. In fact I am sure that is the better way to do it, and in fact at some point it was written similar to that. The hell if I rememeber why I changed it. But it basically came down to its origins and the fact I didn't want ANY blank lines. In reply to Dos2Unix file formater by pschoonveld
|
|