Skip to main content
The 2024 Developer Survey results are live! See the results
Clarify effects of -e option
Source Link
Bennett McElwee
  • 25.4k
  • 6
  • 55
  • 64

Ubuntu 14.04:

simple cat -e <filename> works just fine.

In case you wonderedThis displays Unix line endings - '$'(\n or LF) as $ and Windows line endings (a dollar sign\r\n or CRLF) is a newline symbol inas cat -e^M$ output.

Ubuntu 14.04:

simple cat -e <filename> works just fine.

In case you wondered - '$' (a dollar sign) is a newline symbol in cat -e output

Ubuntu 14.04:

simple cat -e <filename> works just fine.

This displays Unix line endings (\n or LF) as $ and Windows line endings (\r\n or CRLF) as ^M$.

Source Link
Alex Shelemin
  • 3.7k
  • 1
  • 17
  • 19

Ubuntu 14.04:

simple cat -e <filename> works just fine.

In case you wondered - '$' (a dollar sign) is a newline symbol in cat -e output