Miscellaneous command line resources


Fix cell line breaks in a delimited text file

This chunk assumes that each new line should start with a number. Other common cases arise with separators stranded on a new line. Here [file 1] is the name of your input file, and [file 2] the output file.

perl -p00e 's/\n(?=\D)/ /g' [file1] > [file2]