Compare commits

...

11 Commits

Author SHA1 Message Date
Mike Holloway
8a9f48481f On branch parse-mdls
Your branch is up to date with 'origin/parse-mdls'.

 Changes to be committed:
modified:   hash-files
	Integrated functionality from mdls-parse subfunction into
	mdls_files
deleted:    mdls-parse
	Deleted; Integrated into hash-files
2022-03-26 15:09:22 -04:00
Mike Holloway
62f093dd89 Superflous k issue debugged - output is direct from mdls where 'k' is
introduced
2022-03-26 15:06:00 -04:00
Mike Holloway
6d20ec3a3c Debugging superflouous 'k' in output. 2022-03-26 15:01:43 -04:00
Mike Holloway
9c1dbe5860 Trying to eliminate superfluous 'k' before mdls_key variable output 2022-03-26 14:36:14 -04:00
Mike Holloway
9ad239a3dd Adding variables to printf command 2022-03-26 14:34:21 -04:00
Mike Holloway
2d210310b7 On branch parse-mdls
Your branch is up to date with 'origin/parse-mdls'.

 Changes to be committed:
modified:   mdls-parse
	Instantiating variables for mdls key,value pairs.
2022-03-26 14:33:05 -04:00
Mike Holloway
16ba557fd6 Whoops - cut not split 2022-03-26 14:25:17 -04:00
Mike Holloway
119db85b3a Add cut command using '=' as delimiter. 2022-03-26 14:24:09 -04:00
Mike Holloway
9c02331baa Setting IFS for proper loop output 2022-03-26 14:22:50 -04:00
Mike Holloway
4f391a62bd for loop echoing mdls output 2022-03-26 14:21:45 -04:00
Mike Holloway
9b0f67d81a On branch parse-mdls
Changes to be committed:
new file:   mdls-parse
	Bash subfunction to parse mdls data and produce data for SQL
	tables
2022-03-26 14:07:49 -04:00

View File

@ -33,9 +33,12 @@ create_list_of_files () {
mdls_files () { mdls_files () {
IFS=$'\n' IFS=$'\n'
for file in $list_of_files; do for file in $list_of_files; do
echo "=== mdls info === for line in $(mdls $file); do
===========" mdls_key=$(printf "%s" $line | cut -d '=' -f 1)
mdls $file mdls_value=$(printf "%s" $line | cut -d '=' -f 2)
printf "\n============================\nMDLS Key: %s\nMDLS Value: %s\n============================\n\n" $mdls_key $mdls_value
done
done done
} }
hash_files () { hash_files () {