On branch rewrite-2022-03-26

Your branch is up to date with 'origin/rewrite-2022-03-26'.

 Changes to be committed:
modified:   hash-files
	Constructing mdls_properties array.
rewrite-2022-03-26
Mike Holloway 2 years ago
parent 8d391800d6
commit 316f57e41f
  1. 5
      hash-files

@ -33,13 +33,14 @@ 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: $mdls_value" mdls_properties+=$mdls_value
unset IFS unset IFS
else else
: #echo "Did not print!" : #echo "Did not print!"
fi fi
IFS=$old_IFS IFS=$old_IFS
done done
export $mdls_properties
} }
@ -79,7 +80,7 @@ IFS=',';echo "${csv_columns[*]}";IFS=$'\n'
for file in $(find $Working_Fullpath -maxdepth 1 -type f); do for file in $(find $Working_Fullpath -maxdepth 1 -type f); do
hash=$($md5_bin $file | awk '{ print $4 }') hash=$($md5_bin $file | awk '{ print $4 }')
mdls_properties=$(mdls_per_file $file) mdls_properties=$(mdls_per_file $file)
echo -e "mdls_properties: \n=======================\n$mdls_properties" echo -e "============= CSV Row ==========\n$file,$hash,$mdls_properties"
# write_per_file $file $hash $mdls_properties # write_per_file $file $hash $mdls_properties
done done

Loading…
Cancel
Save