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

Time:09-07

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

CodePudding user response:

Two versions:

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

or actually putting the smiley in the code:

printf '           
  • Related