I have a script that I need to run on every file in a folder. The script creates a new file with the same name as the original file in a new folder.
So the folder contains files with names like:
SLX-8691.ART12.seq
SLX-8690.ART12.seq
SLX-8692.ART12.seq
SLX-8693.ART12.seq
The script I want to run on every file isexample is as follows:
$ ./unique_seq_counts.rb ./qualitymask/SLX-8691.ART12.seq > ./uniquecounts/SLX-8691.ART12.counts.txt
So that SLX-8691.ART12.seq is replaced by each file name.
Is there a way of looping through a replacing each filename automatically?
Thanks