What command line can i use to create a script that will print a smiley in shell?

Viewed 45

I have tried this line of code but it is not working. #!/bin/bash echo $\'U+1F615'

1 Answers

Two versions:

printf '\U1F615\n'      # or: echo -e '\U1F615'

or actually putting the smiley in the code:

printf '\n'           # or: echo ''
Related