Skip to main content
added 401 characters in body
Source Link
Gust1
  • 13
  • 1
  • 4

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

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.

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

incorporate comment, fix spelling and grammar, fix other problems
Source Link
ctrl-alt-delor
  • 28.8k
  • 11
  • 66
  • 113

Shell script that execute c++a program running multiple input files

iI am new to shell scripting thus I am looking for help.

I have a c++ program that takes a data.txt astwo arguments input file-name, and after execution put the results on an output solution.txt file-name.

I have multiple .txt data files with different names,. I want to write a shell script that executes the program for all the data files at the same time, so every file will be treated separately, and for.

For every output file the name should be the name of the originalinput file-name concatenated with "-s"-s to indicate that is a solution file.

Thank for if you responded me Except that the -s should append the base part of the name, such that file.txt becomes file-s.txt.

Shell script that execute c++ program running multiple input files

i am new to shell scripting thus I am looking for help.

I have a c++ program that takes a data.txt as input and after execution put the results on an output solution.txt file.

I have multiple .txt data files with different names, I want to write a shell script that executes the program for all the data files at the same time, so every file will be treated separately, and for every output file the name should be the name of the original file-name concatenated with "-s" to indicate that is a solution file.

Thank for if you responded me

Shell script that execute a program running multiple input files

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.

added 5 characters in body
Source Link
ctrl-alt-delor
  • 28.8k
  • 11
  • 66
  • 113

i am new to shell scripting thus I am looking for help.

I have a c++ program that takes a data.txt as input and after execution put the results on an output solution.txt file.

I have multiple .txt data files with different names, I want to write a shell script that executes the program for all the data files onat the same time, so every file will be treated separately, and for every output file the name should be the name of the original file-name concatenated with "-s" to indicate that is a solution file.

Thank for if you responded me

i am new to shell scripting thus I am looking for help.

I have a c++ program that takes a data.txt as input and after execution put the results on an output solution.txt file.

I have multiple .txt data files with different names, I want to write a shell script that executes the program for all the data files on the same time, so every file will be treated separately, and for every output file the name should be the name of the original file concatenated with "-s" to indicate that is a solution file.

Thank for if you responded me

i am new to shell scripting thus I am looking for help.

I have a c++ program that takes a data.txt as input and after execution put the results on an output solution.txt file.

I have multiple .txt data files with different names, I want to write a shell script that executes the program for all the data files at the same time, so every file will be treated separately, and for every output file the name should be the name of the original file-name concatenated with "-s" to indicate that is a solution file.

Thank for if you responded me

Source Link
Gust1
  • 13
  • 1
  • 4
Loading