Timeline for How to output a multiline string in Bash?
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 3, 2022 at 21:16 | comment | added | Joshua Pinter |
ProTip: Use double quotes around your delimiter to escape things, like "xx" .
|
|
Jun 6, 2021 at 22:03 | comment | added | Philipp | It works with bash and zsh on MacOS 11.4. Great tip! | |
Nov 27, 2020 at 1:47 | history | edited | Elliptical view | CC BY-SA 4.0 |
added 12 characters in body
|
Jul 6, 2019 at 17:39 | history | edited | Elliptical view | CC BY-SA 4.0 |
deleted 2 characters in body
|
Jun 13, 2019 at 23:03 | comment | added | Elliptical view | @four43, You were right. Does not work to remove leading spaces. However, does remove leading tabs. So I corrected my answer from tabs and spaces, to tabs and not spaces. Sorry for the mistake. I checked the manual and it clearly just says tabs are removed. Thanks for bringing this to my attention. | |
Jun 13, 2019 at 23:00 | history | edited | Elliptical view | CC BY-SA 4.0 |
added 7 characters in body
|
Jun 12, 2019 at 20:22 | comment | added | four43 | Did not work in bash 4.4.19 in Ubuntu. It did not remove the spacing before line1 and line2 | |
Jun 11, 2019 at 22:55 | comment | added | four43 | That did not work for me. What shell are you using? | |
Mar 1, 2018 at 11:31 | history | answered | Elliptical view | CC BY-SA 3.0 |