sed - e '
s/^[[:blank:]]*//; # trim any leading blanks from the current line read in
s/[[:blank:]]*$//; # trim any trailing blanks from the current line read in
s/"/\\"/g; # escape any double quotes which might exist in the current line read in
H;1h; # append the current line to the hold space, in case of first store as is
$!d; # not yet EOF, drop everything and go back to reading the next line
g; # @ EOF, fetch the hold space: line1\nline2\nline3\n....\nlineEND
s/\n/","/g; # line1","line2","line3","....","lineEND
s/.*/"&"/; # "line1","line2","line3","....","lineEND"
' input
alexandrosangeli
16.02.2021, 09:34
Ссылка