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-filesparse-mdls
parent
62f093dd89
commit
8a9f48481f
2 changed files with 6 additions and 18 deletions
@ -1,15 +0,0 @@ |
|||||||
# Bash Subfunction |
|
||||||
|
|
||||||
|
|
||||||
## ToDo |
|
||||||
## - .env file should support list of keys |
|
||||||
## - Script should support filtering output based on list of keys in .env |
|
||||||
|
|
||||||
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" $mdls_key $mdls_value |
|
||||||
done |
|
||||||
unset IFS |
|
Loading…
Reference in new issue