From 652e775164042957f2c9ecfb7c5d8924d69a5dce Mon Sep 17 00:00:00 2001 From: Mike Holloway Date: Sat, 26 Mar 2022 19:13:14 -0400 Subject: [PATCH] Changing where array invocation is done, still sorting out array output. --- hash-files | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hash-files b/hash-files index 84e0ca8..1609bb9 100755 --- a/hash-files +++ b/hash-files @@ -42,7 +42,7 @@ mdls_per_file () { IFS=$old_IFS done old_IFS=$IFS - IFS=',';echo ${mdls_properties[*]};IFS=$old_IFS + export mdls_properties } @@ -83,7 +83,8 @@ for file in $(find $Working_Fullpath -maxdepth 1 -type f); do hash=$($md5_bin $file | awk '{ print $4 }') mdls_properties=$(mdls_per_file $file) # echo "============= CSV Row ==========" - echo "$file,$hash,$mdls_properties" + #echo "$file,$hash,$mdls_properties" + echo "${mdls_properties[*]}" # write_per_file $file $hash $mdls_properties done } >> $temp_csv_file