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