All Questions
Tagged with associative-array scripting
2 questions
10
votes
4
answers
2k
views
Inverting an associative array
Let's say I have an associative array in bash,
declare -A hash
hash=(
["foo"]=aa
["bar"]=bb
["baz"]=aa
["quux"]=bb
["wibble"]=cc
["wobble"]=aa
)
where both keys and values ...
1
vote
0
answers
84
views
Linux Mint Corners Musical Sequence Associative Array
I am writing a script which uses hot corners to play specific musical notes when hovering in corners, and depending on the musical sequence to execute a specific command.
The script is called with ...