|
|
|
@ -33,7 +33,7 @@ mdls_per_file () { |
|
|
|
|
mdls_value=$(printf "%s" $line | cut -d '=' -f 2) |
|
|
|
|
if [[ " ${keys_of_interest[*]} " =~ " ${mdls_key} " ]];then |
|
|
|
|
IFS=$old_IFS |
|
|
|
|
echo "$mdls_value" |
|
|
|
|
echo "MDLS Value: $mdls_value" |
|
|
|
|
unset IFS |
|
|
|
|
else |
|
|
|
|
: #echo "Did not print!" |
|
|
|
@ -70,6 +70,7 @@ for key in ${keys_of_interest[@]};do |
|
|
|
|
csv_columns+=( ${keys_of_interest[key]} ) |
|
|
|
|
done |
|
|
|
|
## Print columns to first line of csv |
|
|
|
|
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 |
|
|
|
|