mirror of
https://github.com/ksyasuda/rice.git
synced 2024-11-22 03:19:58 -08:00
14 lines
226 B
Bash
14 lines
226 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
HOSTS=(
|
||
|
"DEPOT02 - dc1lxsdepot02.westlakefinancial.com"
|
||
|
)
|
||
|
|
||
|
CHOICE=$(printf '%s\n' "${HOSTS[@]}" | rofi -dmenu -i -l 10)
|
||
|
|
||
|
echo $CHOICE
|
||
|
|
||
|
|
||
|
# print hostname
|
||
|
printf "%s\n" "${HOSTS[@]}" | awk '{print $NF}'
|