I have a question. I made a C program that copies a CSV file into another CSV file but with a new column. To run it you have to put this ./programname inputfile outputfile
I need to use the inputfile name in the program, is there a way that the program can save the inputfile name as a string from the command line at theterminal???
Im using the comand:
>foreach $var (`cat list.txt`)
>./programname $var.csv new$var.csv
>end
On the list.txt there are all the file names i want to work on.
Is there a way for it to take the inputfile name as a string without the .csv extension, like just the $var part?