Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

28
  • 3
    \$\begingroup\$ It does not print a newline. \$\endgroup\$ Commented Oct 29, 2015 at 22:06
  • 3
    \$\begingroup\$ cat does not append a newline (at least on my system). \$\endgroup\$ Commented Oct 29, 2015 at 22:06
  • 8
    \$\begingroup\$ @isaacg cat prints the content of the supplied file byte per byte. \$\endgroup\$ Commented Oct 29, 2015 at 22:17
  • 2
    \$\begingroup\$ @LukStorms But wouldn't this be a cat solution then, instead of a bash solution? And cat does not really qualify as programming language \$\endgroup\$ Commented Oct 29, 2015 at 23:07
  • 38
    \$\begingroup\$ Will this work if the file is named -e ? \$\endgroup\$ Commented Oct 30, 2015 at 6:05