-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemoticon.sh
executable file
·37 lines (31 loc) · 1.87 KB
/
emoticon.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Define an array of complex emoticons
EMOTICONS=(
"¯\_(ツ)_/¯" "(╯°□°)╯︵ ┻━┻" "(ง'̀-'́)ง" "( ͡° ͜ʖ ͡°)" "(╯︵╰,)"
"(っ◕‿◕)っ" "(ಥ﹏ಥ)" "(ง •̀_•́)ง" "(づ。◕‿‿◕。)づ" "(╬ಠ益ಠ)"
"(ʘ‿ʘ)" "(╯°Д°)╯︵/(.□ . \)" "( ͡°👅 ͡°)" "(ノ◕ヮ◕)ノ*:・゚✧" "(ಠ‿ಠ)"
"( ͡°⊖ ͡°)" "(ノ◕ヮ◕)ノ*:・゚✧" "(ง'̀-'́)ง" "(ʘ‿ʘ)" "(◕ᴗ◕✿)"
"(✿◠‿◠)" "(╯°□°)╯︵ ʞooqǝɔɐɟ" "(ง'̀-'́)ง╭∩╮(ಠಠ)╭∩╮(ง'̀-'́)ง"
"┬┴┬┴┤(・_├┬┴┬┴" "( ͡❛ ͜ʖ ͡❛)" "(╯°□°)╯︵ ┻━┻ ︵ ╯(°□° ╯)" "( ͡~ ͜ʖ ͡°)"
"(ノ≧∀≦)ノ ‥…━━━★" "( ・_・)♡" "( ͡° ͜ʖ ͡°)╭∩╮" "( ͡• ͜ʖ ͡•)"
"٩(◕‿◕。)۶" "( ͠° ͟ʖ ͡°)" "(ง'̀-'́)ง✧" "┌( ಠ‿ಠ)┘" "(≧◡≦)"
"(ง ื▿ ื)ว" "ಠ_ಠ" "(ง •̀_•́)งง" "ᕙ(⇀‸↼‶)ᕗ" "(ง°ل͜°)ง"
"(⊙_◎)" "(⊙_◎)ノ" "(ノ゚0゚)ノ~" "ᕕ( ᐛ )ᕗ" "(≧∇≦)/"
"(づ ̄ ³ ̄)づ" "✌(-‿-)✌" "(ง^ᗜ^)ง" "ᕕ(⌐■_■)ᕗ ♪♬"
)
#GENERATE AND PRINT ONE EMOTICON
# Generate a random number between 0 and the length of the array
#RANDOM_INDEX=$((RANDOM % ${#EMOTICONS[@]}))
# Print the emoticon at the random index
#echo ${EMOTICONS[$RANDOM_INDEX]}
#GENERATE AND PRINT TWO EMOTICON
# Generate two random numbers between 0 and the length of the array
RANDOM_INDEX_1=$((RANDOM % ${#EMOTICONS[@]}))
RANDOM_INDEX_2=$((RANDOM % ${#EMOTICONS[@]}))
# Make sure the two random indexes are not equal
while [ $RANDOM_INDEX_2 -eq $RANDOM_INDEX_1 ]
do
RANDOM_INDEX_2=$((RANDOM % ${#EMOTICONS[@]}))
done
# Print the two emoticons separated by a tab space
echo -e "${EMOTICONS[$RANDOM_INDEX_1]}\t${EMOTICONS[$RANDOM_INDEX_2]}"