Ahh so you say the code I have is from awk and try to run it from bash.
To tell the truth I have problem alot but very very new to bash and Linux.
so I was just looking around a Little, try to read some example and try to make my own script.
I have read the beginner of bash so I know a Little.
That I'm after is to create a script to run with crontab to generate a new weapon order for my CS GO server.
so if I can't mix awk with bash, how do I make so it run 12 randomnumber that is not duplicate in bash?
I was thinking about add all the weapon in a select case
Code:
"mp9" { "kills" "1" }
"mac10" { "kills" "1" }
"mp7" { "kills" "1" }
"bizon" { "kills" "1" }
"ump45" { "kills" "1" }
"p90" { "kills" "1" }
"nova" { "kills" "1" }
"mag7" { "kills" "1" }
"xm1014" { "kills" "1" }
"sawedoff" { "kills" "1" }
"galilar" { "kills" "1" }
"famas" { "kills" "1" }
"ak47" { "kills" "1" }
"m4a1" { "kills" "1" }
"sg556" { "kills" "1" }
"aug" { "kills" "1" }
"awp" { "kills" "1" }
"m249" { "kills" "1" }
"negev" { "kills" "1" }
"glock" { "kills" "1" }
"hkp2000" { "kills" "1" }
"tec9" { "kills" "1" }
"p250" { "kills" "1" }
"deagle" { "kills" "1" }
"fiveseven" { "kills" "1" }
"elite" { "kills" "1" }
"knifegg" { "kills" "1" }
take 12 of this to a config file