On Wed, 15 Nov 2017 11:29:50 -0500 Mark Haney wrote:
This text file has to be 'executed' using 'bash filename.txt'. (Don't ask why, I'm working on code that isn't mine.)
Try adding #!/bin/bash as the first line of the text file and then run it with just the filename.