I have the following bash string and I need to add a line break to it, before the 'Hello' string:
bash -c "echo 'Hello' > /location/file"
I already tried adding it with different variations of the \n
syntax; Before the double quotes, inside the range of the double quotes, and with different variations of escaping.
How could I add a line break just before the 'Hello' string, so to make it appear in the second row?
echo
and backslash, given several times over on this very WWW site alone) is standard. – JdeBP Jan 03 '17 at 09:23printf
, literal newlines within a quoted string? – Gert van den Berg Jan 04 '17 at 12:41