Currupt text file
Posted on 1999-07-28
I frequently have students coming to me with currupt text data files which I assume that have backed-up incorrectly. On our unix system, most people just ftp their datasets (which consist of binary and text data) to their pc/mac and use whatever backup-resources they have there. When students try to reload their data to the workstation, the software says that it is currupt. Looking at the data, all the variables are on one or 2 lines instead of each variable being on its own line. Loading the text file into "joe" indicates that there is a <cr> in between each variable. I'm assuming this is a carriage return since a search and replace for <cr> doesn't work.
So, is there any way I could use sed or some other nifty tool to add a linefeed after each carriage return to make this data usable again? I know how to use sed, however I don't know how to replace/add special characters.