Recently I wanted to output a string containing the dayโ€™s date and time. So I used the echo command combined with the date command. But I didnโ€™t want the newline at the end of the output. So I asked ChatGPT and hereโ€™s the command I got:

echo -n "Hello Varun"