Difference between revisions of "Support:Problems"
From CAC Wiki
(→Text file format wrong after file transfer between Windows and Unix) |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
This is a help file with trouble-shooting advice for commonly encountered issues. Please let us know if you would like us to add something. | This is a help file with trouble-shooting advice for commonly encountered issues. Please let us know if you would like us to add something. | ||
+ | {| style="border-spacing: 8px;" | ||
+ | | valign="top" width="50%" style="padding:1em; border:1px solid #aaaaaa; background-color:#e1eaf1; border-radius:7px" | | ||
== Text file format wrong after file transfer between Windows and Unix == | == Text file format wrong after file transfer between Windows and Unix == | ||
Line 7: | Line 9: | ||
These issues stem from the different text formats that the two systems are using. To convert the format you can use utilities called '''dos2unix''' and '''unix2dos''': | These issues stem from the different text formats that the two systems are using. To convert the format you can use utilities called '''dos2unix''' and '''unix2dos''': | ||
− | * '''On a Unix system''': to convert a file that comes from a Windows system into the proper Unix text format, use ''' | + | * '''On a Unix system''': to convert a file that comes from a Windows system into the proper Unix text format, use '''dos2unix''' |
<pre>dos2unix input output</pre> | <pre>dos2unix input output</pre> | ||
: will convert the file ''input'' (dos, Windows) into the (Unix) file ''output''. If both filenames are identical, it will convert the file in-place from one format to the other. | : will convert the file ''input'' (dos, Windows) into the (Unix) file ''output''. If both filenames are identical, it will convert the file in-place from one format to the other. | ||
− | * | + | * '''On a Windows system''': a similar utility that can be run from a command prompt window in Windows is called '''unix2dos''' and [http://tofrodos.sourceforge.net/download/tfd1713.zip can be downloaded here] (very small, just 110K). |
+ | |} |
Latest revision as of 14:52, 9 May 2016
This is a help file with trouble-shooting advice for commonly encountered issues. Please let us know if you would like us to add something.
Text file format wrong after file transfer between Windows and UnixIf you are creating or editing a text file on a Windows system and then transfer it to a Unix system, the file is often littered with ```control characters such as ^M. Conversely, text files that were created or edited on a Unix machine and then transferred to Windows appear as an endless line with no breaks. These issues stem from the different text formats that the two systems are using. To convert the format you can use utilities called dos2unix and unix2dos:
dos2unix input output
|