Using the wrong array reference syntax? Let's find out

rewrite-2022-03-26
Mike Holloway 3 years ago
parent d602c76796
commit 8d391800d6
  1. 3
      hash-files

@ -70,8 +70,7 @@ echo "Keys of interest:"
echo ${keys_of_interest[@]} echo ${keys_of_interest[@]}
echo "===========================================" echo "==========================================="
for key in ${keys_of_interest[@]};do for key in ${keys_of_interest[@]};do
echo "Key $key is ${keys_of_interest[$key]}" csv_columns+=( $key )
csv_columns+=( ${keys_of_interest[$key]} )
done done
## Print columns to first line of csv ## Print columns to first line of csv
echo "======= CSV Columns ========" echo "======= CSV Columns ========"

Loading…
Cancel
Save