I would like to print a MOTD using styled text when an user connects to the server (ubuntu 18.04) using SSH.
The only way I found is to print the file by myself because Ubuntu originally only cats the motd file.
So now, I have a colord motd file but I don't found any way to print out the contents with the style.
I found this command on stackoverflow:
cat /home/user/conf/bash/motd | sed 's/$/\\n/' | sed 's/ /\\a /g'
But this is not working propertly with large ASCII text.

here is the current test motd file
____ ____ ________ _____ ______ ___ ____ ____ ________
|_ _| |_ _||_ __ ||_ _| .' ___ | .' `.|_ \ / _||_ __ |
\ \ /\ / / | |_ \_| | | / .' \_|/ .-. \ | \/ | | |_ \_|
\ \/ \/ / | _| _ | | _ | | | | | | | |\ /| | | _| _
\ /\ / _| |__/ | _| |__/ |\ `.___.'\\ `-' /_| |_\/_| |_ _| |__/ |
\/ \/ |________||________| `.____ .' `.___.'|_____||_____||________|
Welcome to my Server !
Aliases:
\e[4ml\e[0m => ls -lA
\e[1;93mll\e[0m => ls -l
Have you any solution to do it please ?

tputrather than the ANSI escape codes. (will work with a wider selection of terminals) You can also do a general search "Linux color output with tput" or "using ANSI escape for color output" and you will find a lot.