I am new to shell scripting thus I am looking for help.
I have a program that takes two arguments input file-name, and output file-name.
I have multiple data files with different names. I want to write a shell script that executes the program for all the data files, so every file will be treated separately.
For every output file the name should be the name of the input file concatenated with -s to indicate that is a solution file. Except that the -s should append the base part of the name, such that file.txt becomes file-s.txt.