I want to be able to store multiple integer arrays into a txt file when I'm done updating them, and then be able to load these arrays from the txt file into the script that I am using.
The arrays basically will contain certain statistics and I want to be able to load and save them so that they update the statistics after each execution of the script.
Is there any way to do this in bash?
EDIT: to the answer below, how would you write the arrays to the file?