Skip to main content
8 events
when toggle format what by license comment
Mar 31, 2019 at 18:42 comment added Kusalananda @Steiner ... except for using a here-document. Well, there's a thing I didn't think of :-)
Mar 31, 2019 at 11:43 vote accept Steiner
Mar 31, 2019 at 15:52
Mar 31, 2019 at 11:43 comment added Steiner Thank you that answers my question. The suggestion at the end and the links provided are very helpful too!
Mar 31, 2019 at 11:35 history edited Kusalananda CC BY-SA 4.0
added 79 characters in body
Mar 31, 2019 at 11:33 comment added Kusalananda @Steiner See update answer. There's not much else you could do without using features of specific shells.
Mar 31, 2019 at 11:29 history edited Kusalananda CC BY-SA 4.0
added 145 characters in body
Mar 31, 2019 at 11:28 comment added Steiner Indeed this works, but requires a file to be fed to the while-loop. My actual code is more complex, and requires a modified multiline string to be fed to the while-loop. Your solution to write this multiline string to a temporary file works, but is there a solution that does not require writing a temporary file?
Mar 31, 2019 at 11:24 history answered Kusalananda CC BY-SA 4.0