Categories
How to iterate through pairs of files?
The folder contains input*.txt and output*.txt files, where * is a number. Their equal number. The first one may be without a number. How to loop through these pairs in bash?
Answer the question
In order to leave comments, you need to log in
How to loop through these pairs in bash?
for INPUT in input*.txt ; do OUTPUT=output${INPUT#input} ... done
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question