Search Results

Search: Posts Made By: ausdim
24,888
Posted By junior-helper
That is really too bad, because almost everything...
That is really too bad, because almost everything is bash-specific in my script. Unfortunately I have no prerequisites to help you further. I could rewrite it in perl, if it's an option.
24,888
Posted By Scrutinizer
You could try this instead, which is a...
You could try this instead, which is a translation of junior-helper's "restore" bash 4 code into more universal shell code and should run in any POSIX compliant shell, including bash and ksh:
...
24,888
Posted By MadeInGermany
Change your awk backup so it saves the rest of...
Change your awk backup so it saves the rest of the default: line
awk '/default:/ {sub (/.*default/,""); sub (/,.*/,","); print}' config.json >defOr with sed
sed '/default:/!d; s/.*default//;...
24,888
Posted By junior-helper
Following might work for you: "Save" default...
Following might work for you:

"Save" default values
$ grep default: config.json >def"Restore" script:
#!/bin/bash

#following command requires bash 4
readarray -t arr <def
index=0
...
Showing results 1 to 4 of 4

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