mdlspipe/mdls-parse
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

11 lines
291 B
Plaintext
Executable File

# Bash Subfunction
oldIFS=$IFS
IFS=$'\n'
for line in $(mdls .env); do
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