Let me explain each, and talk about what it's most useful for. Within the FOR command, however, we have numerous different kind of looping options. I'm not going to talk about GOTO, which we do have, but it is for scripts and not for individual commands, the relentless focus of our blog. In cmd.exe, we really have just one command that implements loops: FOR. So, I figured the easiest way for me to learn about bash and PowerShell looping was to throw down some cmd.exe options, and invite my Kung Fu partners to respond in kind. But, I'd like to learn more about the looping options within bash and PowerShell, and what specific uses are best for each kind of loop. I have an intuitive feel for what kinds of loops are available in cmd.exe and when to use each kind. If you look at our episodes, I think about 80% of them actually use some sort of loop. Individual commands are certainly powerful, but to really mess up your computer, it's helpful to have _iteration_, doing the same thing again and again with some subtle variations, repeating a process to do the same thing again and again, with some sutble variations. Hal just thought you'd like it.Īnyway, where was I? Oh yeah, writing a new episode for this week.įaithful readers (yes, both of you) know that we often use various kinds of loops in the commands we construct here. No, you don't have to wear the maid's outfit. don't forget to empty the wastebaskets and scrub the bathroom floor before you leave tonight. Before now, he'd throw in his insights on occasion, but now he's a regular - our very own Command Line Kung Fu blog FNG, if you will. He really did an awesome job sparring with Hal! In fact, Tim was so good that we're going to have him work as a regular contributor here, adding his thoughts from a PowerShell perspective to each episode. Many thanks to Tim Medin for holding down the Windows fort while I was away. Well, I'm back from my adventures on the other side of Planet Earth.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |