# How to print the content of the file with new line characters as it appears on the file

**URL:** <https://forum.ansible.com/t/how-to-print-the-content-of-the-file-with-new-line-characters-as-it-appears-on-the-file/23779>\
**Category:** Ansible Project\
**Created:** [February 21, 2017, 4:59am UTC](https://forum.ansible.com/t/how-to-print-the-content-of-the-file-with-new-line-characters-as-it-appears-on-the-file/23779 "2017-02-21T04:59:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chandan\_Javaregowda](https://avatars.discourse-cdn.com/v4/letter/c/5f9b8f/32.png) [@Chandan\_Javaregowda](https://forum.ansible.com/u/Chandan_Javaregowda)\
**Post date:** [February 21, 2017, 4:59am UTC](https://forum.ansible.com/t/how-to-print-the-content-of-the-file-with-new-line-characters-as-it-appears-on-the-file/23779/1 "2017-02-21T04:59:55Z")

</div>

I am trying to print the content of the file with new line characters as it appears on the file. What is the best way to do it?
