cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
sameena
Level 3

convert end of line character from dos to unix

Hi, I have a text file and I am building install for both unix and windows. So, to have proper end of line character, \n for unix and \r\n for windows, do I have to have to separate copies of the same file or is there a workaround for this.

Thanks.
Labels (1)
0 Kudos
(2) Replies
pv7721
Level 20

Use the Modify Text File - Single File Action, select your file, then you'll notice that the default action for Change Line Endings is to User's Platform.
0 Kudos
sameena
Level 3

Thank you.
I see that ‘Modify Text File – Multiple Files’ also has the same option.
Now, I am building an install for a very large payload about 1GB. Suppose I have 1000 files and 300 among them are text file and are in windows environment – while some are in dos format and some are in unix. So, if I use the ‘modify text…multiple..’ action and choose to change end of line to unix, is the action intelligent enough to skip files that are already in unix format or will it still do it.
Also, when I specify a folder in ‘modify text…multiple..’ action is it intelligent enough to recognize a text file from binary file and skip the binary file or do I have to use filters.

Thanks in advance.
0 Kudos