Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Using the copy command is it possible to generate Unix on Windows and vice-versa?

0
Posted

Using the copy command is it possible to generate Unix on Windows and vice-versa?

0

On Unix a Line Feed character (LF, ASCII 10) is used to mark the end of a line. On Windows an LF plus a Carriage Return (CR, ASCII 13). Although the copy command allows you to specify many different delimiters, the ‘nl’ (New Line) one will generate LF or LFCR depending on the platform it is running on. Fortunately there are a couple of ways to achieve this result. Using Ingres Net you can run the copy command on Windows with the database on Unix (or vice-versa) and it will generate LFCR EOLs. If you generate the file on Unix and transfer via ftp to Windows (or vice-versa) you can specify ASC (ASCII format) and it will translate the file. There are some utilities for Windows and Unix which can be used to translate the files – e.g. on Unix sed ‘s/$/^M/g’ orig.dat > windows.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123