Revised bash code to take input from the CLI for the file to run and output results into a file. Also added variables to shorten commands.