Debugging superflouous 'k' in output.
This commit is contained in:
parent
9c1dbe5860
commit
6d20ec3a3c
12
mdls-parse
12
mdls-parse
@ -1,10 +1,20 @@
|
||||
# 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
|
||||
echo "================================"
|
||||
echo $mdls_key
|
||||
echo "--------------------------------"
|
||||
echo $mdls_value
|
||||
echo "================================"
|
||||
# printf "\n============================\nMDLS Key: %s\nMDLS Value: %s\n============================\n\n" $mdls_key $mdls_value
|
||||
done
|
||||
unset IFS
|
||||
|
Loading…
Reference in New Issue
Block a user