Skip to content
Advertisement

shell script that runs program that takes two input files

I want to develop a shell script that calls a program that requires two input files. The question is that, it is not only one pair that has to process it, but x number of pairs that are in the same directory. In the directory I have for example:

JavaScript

The command line of the program is as follows:

JavaScript

And what I tried was the following, but it didn’t work.

JavaScript

Any ideas? … I have also tried it with parallel but it did not work either

Advertisement

Answer

Because the command should be called on the instersection of two sets, and from the question the file names differ by extension the second may be retrieved from the first by changing the extension.

JavaScript

however the -o option must be changed because f is not set

Advertisement