If the values of your variables are not in multiple lines, a basic and easy way for it is to use set:
# Save
set | grep ^ARR= > somefile.arrays
# Load
. somefile.arrays
In case if you want to check whether file does not contain a specific string, you can do it as follows. if ! grep -q SomeString "$File...
No comments:
Post a Comment