Search Results

Search: Posts Made By: da1
790
Posted By da1
Thank you, I read up on "variable indirection"...
Thank you, I read up on "variable indirection" and it now makes sense.
790
Posted By da1
What does the "!" in "${!VARIABLE:-\n}" mean?
so I'm going over this script someone else wrote and I haven't seen the aforementioned construct before.


The code says:
declare VAR1="${!VARIABLE:-\n}"


I know what the ":-\n" does but I...
2,875
Posted By da1
What I ended up doing was using a piece of code I...
What I ended up doing was using a piece of code I found on stackoverflow:
json2keyvalue() {
echo $JSON | jq -r '{Element1,Element2,Element3} | to_entries|map("\(.key)=\(.value|tostring)")[]'
}...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 11:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy