Updating bash variables in a loop How to update a bash variable inside a loop when reading from command output Click here to read the article