Iteration errors? Getting duplicate MDLS property column names?
This commit is contained in:
parent
2a491037a0
commit
71e228c6c2
@ -31,6 +31,8 @@ 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 -e ",${mdls_value}"
|
||||||
|
Loading…
Reference in New Issue
Block a user