2022-03-26 18:07:49 +00:00
|
|
|
# Bash Subfunction
|
|
|
|
|
2022-03-26 18:22:50 +00:00
|
|
|
oldIFS=$IFS
|
|
|
|
IFS=$'\n'
|
2022-03-26 18:21:45 +00:00
|
|
|
for line in $(mdls .env); do
|
2022-03-26 18:33:05 +00:00
|
|
|
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"
|
2022-03-26 18:21:45 +00:00
|
|
|
done
|
2022-03-26 18:22:50 +00:00
|
|
|
unset IFS
|