mirror of
https://gitea.blesmrt.net/mikaela/gist.git
synced 2024-12-26 21:02:37 +01:00
15 lines
485 B
Bash
15 lines
485 B
Bash
|
#!/usr/bin/env bash
|
||
|
# Copied from https://stackoverflow.com/a/8880633 except the nicks
|
||
|
|
||
|
## declare an array variable
|
||
|
declare -a arr=("janneone" "mbrsk" "mielipuoli" "nyos" "usvi" "vhautaka" "yaamboo" "lash-" "d200b" "talikka" "arimartti" "scoffa")
|
||
|
|
||
|
## now loop through the above array
|
||
|
for i in "${arr[@]}"
|
||
|
do
|
||
|
echo "/msg GroupServ invite !ppfi-aktiivit $i"
|
||
|
# or do whatever with individual element of the array
|
||
|
done
|
||
|
|
||
|
# You can access them using echo "${arr[0]}", "${arr[1]}" also
|