I have a script that exports log files, usually I get between 1-3 separate files depending on the size of the log for a particular day. After the export I run a report generator to spit out an html document of those logs. My question is how to call the command that generates the reports depending on the number of files, I know I can use if statements and do:
./generateReport -i file1 -o output.html
./generateReport -i file1 file2 -o output.html
./generateReport -i file1 file2 file3 -o output.html
is there a way to loop over the files and include them as an input??
-i file1 -i file2 -o output.html, or to remove-ialtogether (file1 file2 -o output.html)generateReport(to parse names off the command line when called through the given convention), or how to callgenerateReport? I read it as the former.