I have 20 text files named as follows:
samp_100.out, samp_200.out, samp_300.out, ... ,samp_2000.out.
The naming is consistent and the numbering increases by 100 until 2000. I want to make a short script to (1) delete the first line of each script, and (2) apply the following command to each one of the files:
sed 's/ \+/,/g' ifile.txt > ofile.csv
while keeping the naming the same when changed to a .csv extension
I am assuming I need to use a for loop, but I am not sure how to iterate through the file names.