Files in the directory, other than input.txt, are named by the standard convention: x_y_asteroids.txt The script, check_asteroids.sh, can take a filename as the first parameter, if it's not specified it'll run 3_4_8.txt