17 FUNDAMENTALS OF THE FOR COMMAND

In this chapter, I’ll introduce the for command, in particular, the for command used without any options, which just touches on its overall power. This optionless command creates loops, where the input is zero to many values, either simple text values or filenames. Some call this the basic for command, but I chafe at the modifier because there’s nothing basic about the for command, even without the options (which I’ll discuss in upcoming chapters).

Speaking of modifiers in a totally different context, the syntax for this command allows for several modifiers, and you’ll learn how to use these modifiers to ...

Get The Book of Batch Scripting now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.