Join Lines
Join Lines
All of these scripts assume that each field occurs on only one line. However, Toolbox allow fields to wrap. To prepare the Toolbox file, use joinlines.pl to unwrap lines:
Download the script joinlines.pl
perl joinlines.pl < MyDatabase-unix.db > MyDatabase-joined.db
This works best if you have removed trailing spaces first.
[Note for those who are comfortable with more than one way to do things: If you want to change the line ends and unwrap the lines all in one command, you can do this instead:
perl dos2unix.pl < MyDatabase.db | joinlines.pl > MyDatabase-joined.db
However, make sure there are no trailing blanks in the file. This combination does not apply that step.]