Multiple variables for the same command

Posted by Lowzenza on Super User See other posts from Super User or by Lowzenza
Published on 2014-08-22T21:43:30Z Indexed on 2014/08/22 22:24 UTC
Read the original article Hit count: 138

Filed under:

I'm new to cmd and was wondering if there's an easier way of retpying a variable in a command. For example, I have to do two commands for a set of 96 files and each time I would hit the up arrrow key, get my old commands back and change a variable from 1 to 2, then 2 to 3 and so forth.

i.e.:

Desktop\InitialProcess_230 Process230input.fasta -output Process230.fasta

Then each time I want to do the next file which would be InitialProcess_231 and so on, I would change that in the command by scrolling along and removing 0 and putting a 1. Doing that for almost a 100 files seems like a hassle.

© Super User or respective owner

Related posts about cmd.exe