# Convert DOS to Uniix new lines

**URL:** <https://forum.ansible.com/t/convert-dos-to-uniix-new-lines/19221>\
**Category:** Ansible Project\
**Created:** [September 10, 2015, 4:46am UTC](https://forum.ansible.com/t/convert-dos-to-uniix-new-lines/19221 "2015-09-10T04:46:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![larry.singer](https://avatars.discourse-cdn.com/v4/letter/l/bc79bd/32.png) [@larry.singer](https://forum.ansible.com/u/larry.singer)\
**Post date:** [September 10, 2015, 4:46am UTC](https://forum.ansible.com/t/convert-dos-to-uniix-new-lines/19221/1 "2015-09-10T04:46:34Z")

</div>

I am using both the copy and the template modules to upload files to a target system. The source files use DOS new lines. The target is Linux. It template module seems to convert the end of line characters to UNIX end of lines. The copy doesn’t support this. Can I suggest an option on both of these modules that allows the end of line characters to be converted correctly.

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [September 10, 2015, 1:02pm UTC](https://forum.ansible.com/t/convert-dos-to-uniix-new-lines/19221/2 "2015-09-10T13:02:02Z")

</div>

i would make this it's own utility (dos2unix) or use the replace  
module to do this.
