From 2f5be070c8aecf47507300b5396320a913aa4bef Mon Sep 17 00:00:00 2001 From: Mike Holloway Date: Sat, 26 Mar 2022 19:02:17 -0400 Subject: [PATCH] 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 Temp csv file (re)integration --- hash-files | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/hash-files b/hash-files index 0624d1a..4ae3890 100755 --- a/hash-files +++ b/hash-files @@ -75,14 +75,16 @@ for key in ${keys_of_interest[@]};do csv_columns+=( $key ) done ## Print columns to first line of csv -echo "======= CSV Columns ========" -IFS=',';echo "${csv_columns[*]}";IFS=$'\n' +#echo "======= CSV Columns ========" +{ IFS=',';echo "${csv_columns[*]}";IFS=$'\n' ## Loop through files, writing to csv 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 -e "============= CSV Row ==========\n$file,$hash,$mdls_properties" +# echo "============= CSV Row ==========" + echo "$file,$hash,$mdls_properties" # write_per_file $file $hash $mdls_properties done - +) >> $temp_csv_file +cat $temp_csv_file unset IFS