Run Script on Different Files
This is a question that has been answered probably thousands of times, but without knowing the exact jargon I haven't been able to find a single solution.
I have a perl script that parses a spreadsheet file and a bash script that interprets the parsing. I want to be able to run new files through the parsing and interpreting scripts without having to change the filename in both of those scripts, and to generate a output name based on the name of the spreadsheet file I feed them both.
How can I alter the script so that I can set the filename I want it to process in the same command line, without changing the script itself every time?