#!/bin/bash
declare -A LANGUAGES
BASE="./langs"
for path in $(find $BASE -name '*.lng')
do
line=$(grep "language" $path)
name=${line#*=}
LANGUAGES[$name]=$path
done
echo ${!LANGUAGES[@]}
echo ${LANGUAGES[@]}
select l in ${!LANGUAGES[@]}
do
echo "Selected: $l"
echo "Selected file: " ${LANGUAGES[$l]}
break
done
https://www.hp.com/us-en/shop/dlp/17-inch-2-in-1-laptop#!