begin quoting Todd Walton as of Fri, Aug 29, 2008 at 06:15:12AM -0500: > >From a technet article by Don Jones: > > When I speak at conferences, such as Tech?Ed or TechMentor, I get into > the habit of making proclamations?general-rule announcements that help > users remember key points about things like Windows PowerShell. My > latest proclamation is, "If you're parsing a string in Windows > PowerShell, you're doing something wrong." > > This comes from my philosophy regarding Windows PowerShell? being an > object-oriented shell. If you're doing things like dumping lists of > services into a text file and then parsing that text file to see which > services are started, you're working too hard. That's a valid approach > in a text-based OS such as UNIX, but Windows PowerShell (as well as > Windows(R) itself) lets you use objects in a much more efficient way. > > http://technet.microsoft.com/en-us/magazine/cc743166.aspx?pr=blog
Misleading lead-in... the article is *actually* about parsing text with a more-or-less M$-equivalent to find and grep, and does a good job of showing why I consider "the M$ way" to be deep in claw-your-eyes-out territory. -- I cry foul! Stewart Stremler -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
