Chapter 3. Command-Line Scripting Essentials

In a world dominated by whiz-bang graphical user interfaces, you may wonder what command-line scripting has to offer that Windows and point-and-click dialog boxes don't. Well, to be honest, the plain appearance of command-line scripting has more to offer than most people realize, especially considering that most people regard command-line scripts as glorified batch files—the kind you used on computers with 8088 processors and MS-DOS. Today's command-line scripting environment is an extensive programming environment, which includes the following:

  • Variables

  • Arithmetic expressions

  • Conditional statements

  • Control flow statements

  • Procedures

You can use these programming elements to automate repetitive tasks, perform ...

Get Windows® Command-Line Administrators Pocket Consultant, Second Edition 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.