Question : linux single line eof
Answered by : leonard
$ cat - << someword
> Here you
> can
> write text with as many
> newlines as you want.
> someword
Here you
can
write text with as many
newlines as you want.
Source : https://stackoverflow.com/questions/29912355/linux-command-and-eof-in-one-line | Last Update : Sat, 05 Mar 22
Question : linux single line eof
Answered by : leonard
If it has to be in one line without newlines use that:
echo -e "lalal:lalal\nopp:ttt\nggg:zzz" | sendmail -S "lalalal" -f "dailaakak" -au "kakakak"
echo -n interpretes escapes characters such as \n as a newline.
Source : https://stackoverflow.com/questions/29912355/linux-command-and-eof-in-one-line | Last Update : Sat, 05 Mar 22