bash echo a checkMark based on condition 1

bash echo a checkMark based on condition

#!/bin/bash

echo -e "\xE2\x9C\x94 existing"
echo -e "\xE2\x9D\x8C missing"

Here is what the above code is Doing:
1. The first line is a shebang. It tells the shell what program to use to interpret the script.
2. The second line is a comment. It’s ignored by the shell.
3. The third line is a command. It prints the string “existing” to the terminal.
4. The fourth line is a command. It prints the string “missing” to the terminal.

Similar Posts