From 2d210310b762c480821b1c95e7517febd3373a0a Mon Sep 17 00:00:00 2001 From: Mike Holloway Date: Sat, 26 Mar 2022 14:33:05 -0400 Subject: [PATCH] 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. --- mdls-parse | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mdls-parse b/mdls-parse index 9087128..98bc6a7 100755 --- a/mdls-parse +++ b/mdls-parse @@ -3,6 +3,8 @@ oldIFS=$IFS IFS=$'\n' for line in $(mdls .env); do - printf "%s "$line | cut -d '=' -f 1,2 + mdls_key=$(printf "%s "$line | cut -d '=' -f 1) + mdls_value=$(printf "%s "$line | cut -d '=' -f 2) + printf "\n============================\nMDLS Key: %s\nMDLS Value: %s\n============================\n\n" done unset IFS