mirror of
https://codeberg.org/privacy1st/arch-repo
synced 2024-11-21 21:23:17 +01:00
13 lines
185 B
Bash
13 lines
185 B
Bash
|
#!/bin/bash
|
||
|
#
|
||
|
# source: https://stackoverflow.com/a/13649357
|
||
|
#
|
||
|
|
||
|
a=(aa ac aa ad "ac ad")
|
||
|
declare -A b
|
||
|
for i in "${a[@]}"; do b["$i"]=1; done
|
||
|
|
||
|
for i in "${!b[@]}"; do
|
||
|
echo ">> $i"
|
||
|
done
|