Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
RVeitch_84
Creator

Converting File Types: Unix LF to Windows CRLF

I need help converting a unix file format with LF to windows with CRLF.

   

0695b00000QFKkSAAX.png

to this

0695b00000QFKkwAAH.png

Thanks for any help.

Bob

Labels (3)
1 Solution

Accepted Solutions
gjeremy1617088143

hi, you can also use tFileInputRaw to read the file content as Object then transform Object to String with tConvertType then replace all \n with \r\n with a tReplace component then you use another tConverType to convert String to Object and you use tFileOutputRaw to rewrite the file.

View solution in original post

2 Replies
Anonymous
Not applicable

Hello

Can you try to use the unix2dos command on a tSystem component?

 

Regards

Shong

 

 

gjeremy1617088143

hi, you can also use tFileInputRaw to read the file content as Object then transform Object to String with tConvertType then replace all \n with \r\n with a tReplace component then you use another tConverType to convert String to Object and you use tFileOutputRaw to rewrite the file.