Search found 4 matches

by cookie
28 Feb 2017 10:28
Forum: DOS Batch Forum
Topic: Rewrite file with UNIX LF endings
Replies: 9
Views: 7569

Re: Rewrite file with UNIX LF endings

Thank you Compo soooo much for your help!!! I don't have enough words to describe my gratitude, I thought I was losing the little bit of sanity that I have left after trying so many things for 5 days with not success. This is the first time I had to do something like this. Used dos2unix and my proce...
by cookie
27 Feb 2017 07:48
Forum: DOS Batch Forum
Topic: Rewrite file with UNIX LF endings
Replies: 9
Views: 7569

Re: Rewrite file with UNIX LF endings

Hello, I did use dos2unix and it works but my problem is a little deeper. Here is the setup: 1. - I create a list with file in the folder FOR %%i IN (P:\Test_Files\FA\Staging\I*OP.DAT*) DO echo %%i >> P:\Test_Files\FA\TDClient_Inbound\ISIR_list.txt P:\Test_Files\FA\Staging\IGCO17OP.DAT P:\Test_Files...
by cookie
24 Feb 2017 12:43
Forum: DOS Batch Forum
Topic: Rewrite file with UNIX LF endings
Replies: 9
Views: 7569

Re: Rewrite file with UNIX LF endings

Thank you for the reply but I can't get it to work. By using <nul set /p newline="/mnt/P/Test_Files/FA/Staging/%isir_idsa.DAT%lf%" >"P:\Test_Files\FA\TDClient_Inbound/edit_test.txt" I am losing %isir_idsa.DAT% and the output file is not created. P:\Test_Files\FA\TDClient_Inbound>...
by cookie
24 Feb 2017 11:44
Forum: DOS Batch Forum
Topic: Rewrite file with UNIX LF endings
Replies: 9
Views: 7569

Rewrite file with UNIX LF endings

I have a batch file which creates a list of files in a folder (dir) and replaces the windows path (P:\....) to Unix formatted path (/mnt/P/...); this txt file will be used as input to a PeopleSoft process. I need to write each record in the file with LF following at the end of each line so right now...