Reintroducing filter

This commit is contained in:
Mike Holloway 2022-03-26 18:37:40 -04:00
parent 191d690603
commit 6f6fedcb95

View File

@ -31,11 +31,9 @@ mdls_per_file () {
unset IFS unset IFS
mdls_key=$(printf "%s" $line | cut -d '=' -f 1) mdls_key=$(printf "%s" $line | cut -d '=' -f 1)
mdls_value=$(printf "%s" $line | cut -d '=' -f 2) mdls_value=$(printf "%s" $line | cut -d '=' -f 2)
echo "mdls_key: $mdls_key"
echo "mdls_value: $mdls_value"
if [[ " ${keys_of_interest[*]} " =~ " ${mdls_key} " ]];then if [[ " ${keys_of_interest[*]} " =~ " ${mdls_key} " ]];then
IFS=$old_IFS IFS=$old_IFS
echo -e ",${mdls_value}" echo "$mdls_value"
unset IFS unset IFS
else else
: #echo "Did not print!" : #echo "Did not print!"