#!/bin/bash # script to run a program reading a summary file make # copy a zipped summary file we that want to read cp ../../v2/summary/summary_77_80/v2_sum_1977.291.17_1977.306.00.gz . # unzip it gunzip v2_sum_1977.291.17_1977.306.00.gz # define summary file using relative addressing # these definitions are passed to main through a getenv call # the files are opened in main after this getenv call # execute the executable file ./lread < v2_sum_1977.291.17_1977.306.00 > output # remove the unzipped binary file rm v2_sum_1977.291.17_1977.306.00