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
.
Edit: Thanks to all the responders, the question is similar to that here The difference is that I am not on MS VS or neither have a problem with the C++ code, and I want to process the all data (Thousands of .txt files) at the same time (concurrently) on a workstation