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
This commit is contained in:
parent
e21989a5c3
commit
2f5be070c8
10
hash-files
10
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
|
||||
|
Loading…
Reference in New Issue
Block a user