nick34992
2/21/2017 - 12:43 AM

Bash: declare, echo: Display Associative Array

Bash: declare, echo: Display Associative Array

#!/bin/bash

declare -a nintendo64_value
nintendo64_value=([clay_fighter]='174.99 USD' [turok_rage]='124.99 USD')
echo "Price: Turok Rage Wars Gray: ${nintendo64_value[turok_rage]}"
echo "Price: Clay Fighter Sculptors Set: ${nintendo64_value[clay_fighter]}"