mdlspipe/mdls-parse

11 lines
291 B
Plaintext
Raw Normal View History

# 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
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