Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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 ...
Kusalananda's user avatar
  • 346k
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 ...
Andrei Ciurea's user avatar