Bash 4.0 has associative arrays, which can be used to build sets.
Here’s an article that discusses them (it was the first Google hit for “bash associative arrays”).
(Personally, I’d just use something other than bash, probably Perl.)
Bash 4.0 has associative arrays, which can be used to build sets.
Here’s an article that discusses them (it was the first Google hit for “bash associative arrays”).
(Personally, I’d just use something other than bash, probably Perl.)