2005/03/26

Control M nuisance

DOS editor and Windows notepad use carriage return (Control M) and new line (Control J) for ending a line of text. This is the notorious Control M nuisance when using Windows editor to type Unix/Linux scripts or C program codes.

One way to stripe off the Control M is to use ascii transfer to ftp the prepared file to the Unix/Linux box. Another method is to use vi to replace Control M by null character. To me, I prefer the ftp method which is easy and straight forward.

No comments: