map $http_host $index_file {
nginx-test.loc index.php;
one.nginx-test.loc index1.php;
two.nginx-test.loc index2.php;
}
server {
listen 80;
server_name nginx-test.loc *.nginx-test.loc;
root /var/www/nginx-test;
index $index_file;
# остальные параметры
}
ip r a default via x.x.x.x
file="my.mp3"
declare -A MP3
while read line; do
[[ $line == *[^=]=[^=]* ]] || continue
IFS='=' read key value <<< "$line"
[[ -n $key ]] || continue
MP3[$key]="$value"
done <\
<(ffprobe 2>&- -show_entries format "$file")
echo "${MP3[TAG:artist]}"
echo "${MP3[TAG:album]}"
echo "${MP3[TAG:title]}"