-
-
Save mmaz/6adb07686cab4f03dc8d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#printf | |
RUN printf '#!/bin/bash\n\ | |
echo hello world from line 1\n\ | |
echo hello world from line 2\n'\ | |
> /tmp/hello | |
## or you can use >> | |
RUN cat /tmp/hello | |
#echo | |
RUN echo -e '#!/bin/bash\n\ | |
echo hello world from line 1\n\ | |
echo hello world from line 2'\ | |
>> /tmp/hello |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
echo -e
:But
-e
didn't work for me, so I went with printf. Also, I tacked on an extra trailing newline, in order tocat
the file out without scribbling over the terminal