From f2ebaa2e877b6df96055df600b1b6895565a86b5 Mon Sep 17 00:00:00 2001 From: Mike Holloway Date: Mon, 21 Mar 2022 19:50:31 -0400 Subject: [PATCH] On branch introduce-mdls Changes to be committed: modified: hash-files Added mdls_files function - very basic - to print mdls info per file. --- hash-files | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/hash-files b/hash-files index 6a4e39c..4d40e1f 100755 --- a/hash-files +++ b/hash-files @@ -28,6 +28,12 @@ create_list_of_files () { unset IFS } +mdls_files () { + IFS=$'\n' + for file in $list_of_files; do + mdls $file + done +} hash_files () { #echo "=== Hash files. === #======================" @@ -73,13 +79,14 @@ trap cleanup EXIT echo "Main Start" create_list_of_files -hash_files -if [ ${#list_of_files[@]} != ${#list_of_hashes[@]} ];then - echo "Error! Number of files and hashes differs. Exiting..." && exit -else - create_csv -fi -write_data +mdls_files +#hash_files +#if [ ${#list_of_files[@]} != ${#list_of_hashes[@]} ];then +# echo "Error! Number of files and hashes differs. Exiting..." && exit +#else +# create_csv +#fi +#write_data #while $list_of_files >=1; do #done