Timeline for How to output a multiline string in Bash?
Current License: CC BY-SA 4.0
25 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 4 at 19:03 | answer | added | SuTalk | timeline score: -1 | |
Jun 6, 2023 at 17:36 | answer | added | Anthony M. | timeline score: 1 | |
Apr 15, 2022 at 19:03 | answer | added | André Campos Rodovalho | timeline score: 0 | |
Feb 18, 2022 at 8:14 | answer | added | Gabriel Staples | timeline score: 1 | |
Nov 10, 2021 at 12:07 | answer | added | assayag.org | timeline score: 2 | |
Apr 19, 2021 at 21:08 | answer | added | Zstack | timeline score: 22 | |
Jan 19, 2021 at 9:49 | answer | added | Ivan | timeline score: 7 | |
Apr 10, 2020 at 8:33 | vote | accept | helpermethod | ||
Apr 10, 2020 at 8:33 | vote | accept | helpermethod | ||
Apr 10, 2020 at 8:33 | |||||
Sep 21, 2018 at 10:09 | history | edited | user719662 | CC BY-SA 4.0 |
deleted 267 characters in body
|
Aug 18, 2018 at 18:47 | answer | added | Jorge | timeline score: 108 | |
Mar 1, 2018 at 11:31 | answer | added | Elliptical view | timeline score: 24 | |
Oct 22, 2017 at 10:03 | comment | added | Anton Tarasenko | Related: stackoverflow.com/questions/23929235/… | |
Apr 26, 2017 at 23:49 | comment | added | mjv |
Check the printf -based solution from Gordon Davidson. Despite being in the shadow of the echo or cat based approaches, it seems to be much less of a kludge. Admittedly the `printf' syntax represent a bit of a learning curve, but I'd like to ear of other drawbacks (? compatibility, performance ? ...)
|
|
Dec 31, 2015 at 8:08 | comment | added | Jeffrey Martinez | For others who come along, more info about "here documents" is available: tldp.org/LDP/abs/html/here-docs.html | |
Jul 12, 2013 at 8:56 | history | edited | helpermethod | CC BY-SA 3.0 |
edited body
|
Jun 12, 2012 at 10:00 | comment | added | helpermethod |
@MarkReed The usage message is output by typing --help (which should go to standard out).
|
|
Jun 10, 2012 at 23:47 | answer | added | Gordon Davisson | timeline score: 29 | |
Jun 10, 2012 at 21:14 | history | edited | helpermethod | CC BY-SA 3.0 |
added 267 characters in body
|
Jun 10, 2012 at 21:10 | vote | accept | helpermethod | ||
Apr 10, 2020 at 8:33 | |||||
Jun 10, 2012 at 17:11 | answer | added | Dennis Williamson | timeline score: 509 | |
Jun 10, 2012 at 17:05 | comment | added | Mark Reed |
If you're outputting a usage message in response to an incorrect invocation, you would normally send that message to standard error instead of standard output, with echo >&2 ...
|
|
Jun 10, 2012 at 15:33 | answer | added | Chris Mohr | timeline score: 288 | |
Jun 10, 2012 at 15:29 | answer | added | nhahtdh | timeline score: 73 | |
Jun 10, 2012 at 15:27 | history | asked | helpermethod | CC BY-SA 3.0 |