Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

How to? Convert a UNIX file to PC file

Apr
1,794
15
TPIPE /input=inputfile.txt /output=outputfile.txt

then not sure what else to add. I need convert line endings of

|10 |0

to

|13 |10
 
I don't recall \0 (a NUL character?) being part of Unix line-enders.

Anyway, have a look at TPIPE's \EOL
 
I got the line endings from my programmers editor - Multi-Edit.....

Will check on tpipe's EOL....
 
I am using

for %x in (%1) tpipe /input=%x /output=%x /eol=3,2,0 /simple=13

Specifying the same file for input and output - seems to be wrong? Does tpipe handle that correctly?

Here is what seems to work for me, so far....

Code:
TPIPE /input=C:\TCMD\WinApp2_Ini\Winapp2.ini /eol=0,2,0 /output=C:\TCMD\WinApp2_Ini\Winapp2.MSD

The Winapp2.ini is from a github project.......
 
for %x in (%1) tpipe /input=%x /output=%x /eol=3,2,0 /simple=13

works.

Of course, one can lost the file is there is a problem, but I am dealing with text files easily recovered.

The files are generated in Linux and copied to DOS, the original files remain in Linux disk.

The reverse is

for %x in (%1) tpipe /input=%x /output=%x /eol=3,0,0 /simple=13

For Mac files to DOS

for %x in (%1) tpipe /input=%x /output=%x /eol=1,2,0 /simple=13

The reverse

for %x in (%1) tpipe /input=%x /output=%x /eol=2,1,0 /simple=13

Regards.
 

Similar threads

Back
Top