Skip to main content
deleted 318 characters in body
Source Link
Dharman
  • 32.6k
  • 25
  • 94
  • 140

Use -e option, then you can print new line character with \n in the string.

Sample (but not sure whether a good one or not) For example:

The fun thing is that -e option is not documented in MacOS's man page while still usable. It is documented in the man page of Linux.

echo -e "This will be the first line \nand this will be on the second line"

Use -e option, then you can print new line character with \n in the string.

Sample (but not sure whether a good one or not)

The fun thing is that -e option is not documented in MacOS's man page while still usable. It is documented in the man page of Linux.

Use -e option, then you can print new line character with \n in the string.

For example:

echo -e "This will be the first line \nand this will be on the second line"
added 7 characters in body; Post Made Community Wiki
Source Link
nhahtdh
  • 56.6k
  • 15
  • 129
  • 164

Use -e option, then you can print new line character with \n in the string.

Sample (but not sure whether a good one or not)

The fun thing is that -e option is not documented in MacOS's man page while still usable. It is documented in the man page of Linux.The fun thing is that -e option is not documented in MacOS's man page while still usable. It is documented in the man page of Linux.

Use -e option, then you can print new line character with \n in the string.

Sample (but not sure whether a good one or not)

The fun thing is that -e option is not documented in MacOS's man page while still usable. It is documented in the man page of Linux.

Use -e option, then you can print new line character with \n in the string.

Sample (but not sure whether a good one or not)

The fun thing is that -e option is not documented in MacOS's man page while still usable. It is documented in the man page of Linux.

added 293 characters in body
Source Link
nhahtdh
  • 56.6k
  • 15
  • 129
  • 164

Use -e option, then you can print new line character with \n in the string.

Sample (but not sure whether a good one or not)

The fun thing is that -e option is not documented in MacOS's man page while still usable. It is documented in the man page of Linux.

Use -e option, then you can print new line character with \n in the string.

Sample (but not sure whether a good one or not)

Use -e option, then you can print new line character with \n in the string.

Sample (but not sure whether a good one or not)

The fun thing is that -e option is not documented in MacOS's man page while still usable. It is documented in the man page of Linux.

Source Link
nhahtdh
  • 56.6k
  • 15
  • 129
  • 164
Loading