Debugging duplicate MDLS Column names

rewrite-2022-03-26
Mike Holloway 3 years ago
parent 6f6fedcb95
commit 7d82f754db
  1. 3
      hash-files

@ -33,7 +33,7 @@ mdls_per_file () {
mdls_value=$(printf "%s" $line | cut -d '=' -f 2) mdls_value=$(printf "%s" $line | cut -d '=' -f 2)
if [[ " ${keys_of_interest[*]} " =~ " ${mdls_key} " ]];then if [[ " ${keys_of_interest[*]} " =~ " ${mdls_key} " ]];then
IFS=$old_IFS IFS=$old_IFS
echo "$mdls_value" echo "MDLS Value: $mdls_value"
unset IFS unset IFS
else else
: #echo "Did not print!" : #echo "Did not print!"
@ -70,6 +70,7 @@ for key in ${keys_of_interest[@]};do
csv_columns+=( ${keys_of_interest[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 ========"
IFS=',';echo "${csv_columns[*]}";IFS=$'\n' IFS=',';echo "${csv_columns[*]}";IFS=$'\n'
## Loop through files, writing to csv ## Loop through files, writing to csv
for file in $(find $Working_Fullpath -maxdepth 1 -type f); do for file in $(find $Working_Fullpath -maxdepth 1 -type f); do

Loading…
Cancel
Save