On branch introduce-mdls

Changes to be committed:
modified:   hash-files
	Added mdls_files function - very basic - to print mdls info per
	file.
introduce-mdls
Mike Holloway 2 years ago
parent af56608bc2
commit f2ebaa2e87
  1. 21
      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

Loading…
Cancel
Save