[Solved] convert the CR/LF line terminators in that file to Unix-style LF line terminators?


You forgot the ; before do. do counts as a new statement. Alternatively you could place the do on a new line. In my opinion, the most comfortable way to convert DOS line endings (CRLF) to Unix line endings (LF-only) is dos2unix. If you fix your ;error, using dos2unix instead of sed should be straight forward and trivial.

1

solved convert the CR/LF line terminators in that file to Unix-style LF line terminators?