LovecraftHP
Programmer
Hi guys! I'm new to Linux so excuse me if the answer to this should turn out to be too obvious. I am working with numbered files eg train1.txt, train2.txt etc. Is there a way to execute a command on these files and make the number variable? What I mean is something like:
I have experimented a bit with the Linux for do command but haven't had any success so far. If anyone could please help me out? Thanks.
Code:
for (x=1;x<=10;x++) do program trainx.txt
I have experimented a bit with the Linux for do command but haven't had any success so far. If anyone could please help me out? Thanks.