Try command-line looping for added efficiency
Source: Vincent Danen
Creating complex commands is one of the strengths of the command line, even though it takes an investment of time to learn this skill. Using loops, you can take often-used commands that would normally be executed in sequence manually, and have them done automatically. Vincent Danen tells you what you need to know about getting started with loops.