
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Lead, Follow, or Move &#187; Power Lines</title>
	<atom:link href="http://www.leadfollowmove.com/archives/tag/power-lines/feed" rel="self" type="application/rss+xml" />
	<link>http://www.leadfollowmove.com</link>
	<description>Adam Bell on Deployment, Automation, PowerShell et al</description>
	<lastBuildDate>Thu, 22 Apr 2010 14:34:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Path PowerLine</title>
		<link>http://www.leadfollowmove.com/archives/powershell/path-powerline</link>
		<comments>http://www.leadfollowmove.com/archives/powershell/path-powerline#comments</comments>
		<pubDate>Thu, 07 Jun 2007 10:21:24 +0000</pubDate>
		<dc:creator>Adam Bell</dc:creator>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Power Lines]]></category>

		<guid isPermaLink="false">http://www.leadfollowmove.com/archives/powershell/path-powerline</guid>
		<description><![CDATA[I am constantly impressed by how quick you can get the job done with PowerShell. As I have mentioned before one-liners, or PowerLines as I prefer ;) are a good example, although not always practical. So here&#8217;s my PowerLine for the day: if (! ($env:path).contains(&#34;C:\coding&#34;) ) { $env:path+= &#34;;C:\coding&#34; } This basically checks if the [...]]]></description>
			<content:encoded><![CDATA[<p>I am constantly impressed by how quick you can get the job done with PowerShell. As I have mentioned before one-liners, or PowerLines as I prefer ;) are a good example, although not always practical.</p>
<p>So here&#8217;s my PowerLine for the day:</p>
<div class="quickcodenoclick"><code><br />
if (! ($env:path).contains(&quot;C:\coding&quot;) ) { $env:path+= &quot;;C:\coding&quot; }<br />
</code></div>
<p>This basically checks if the path statement contains &#8220;C:\coding&#8221;, and if not appends it to the end.</p>
<p>I haven&#8217;t looked at a PowerLine for removing it yet, but I suspect one line might be pushing it for that. Anyone fancy the challenge?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.leadfollowmove.com/archives/powershell/path-powerline/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Power Lines</title>
		<link>http://www.leadfollowmove.com/archives/powershell/power-lines</link>
		<comments>http://www.leadfollowmove.com/archives/powershell/power-lines#comments</comments>
		<pubDate>Wed, 04 Apr 2007 10:01:03 +0000</pubDate>
		<dc:creator>Adam Bell</dc:creator>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Power Lines]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://www.leadfollowmove.com/archives/powershell/power-lines</guid>
		<description><![CDATA[Once you&#8217;ve been using PowerShell for a while you start to notice that you can often get the job done using just one line of code. These &#8220;one liners&#8221; can sometimes look pretty impressive, but they are also get pretty cryptic! Its a good sales pitch for PowerShell: &#8220;yeah, I can do [insert amazing feat [...]]]></description>
			<content:encoded><![CDATA[<p>Once you&#8217;ve been using PowerShell for a while you start to notice that you can often get the job done using just one line of code. These &#8220;one liners&#8221; can sometimes look pretty impressive, but they are also get pretty cryptic! </p>
<p>Its a good sales pitch for PowerShell: &#8220;yeah, I can do [insert amazing feat here]. It just takes a line of code in PowerShell!&#8221; ;)</p>
<p>I like to think of these, as small bragging rights for the new language, and I call them <strong>Power Lines</strong>.  As I find interesting Power Lines during my wanderings I will start posting them here.</p>
<p>Of course the most impressive Power Lines I&#8217;ve seen around originate from developers, so I make no promises on the &#8220;amazement&#8221; factor ;)</p>
<p>Starting off small here&#8217;s the first one that I&#8217;ve been using today:</p>
<div class="quickcodenoclick"><code><br />
[system.guid]::NewGuid().ToString()<br />
</code></div>
<p>This simply generates a new GUID in string format.</p>
<p>A couple of other examples I&#8217;ve seen around:<br />
<a title="" href="http://blogs.msdn.com/powershell/search.aspx?q=one+liner&#038;p=1">MS PowerShell One Liners</a><br />
<a title= "/\/\o\/\/ PowerShelled" href="http://search.blogger.com/?as_q=one+liner&#038;ie=UTF-8&#038;ui=blg&#038;bl_url=mow001.blogspot.com&#038;x=0&#038;y=0">MOW&#8217;s old blog</a><br />
<a title="Google: Search on PowerShell One Liner" href="http://www.google.co.uk/search?hl=en&#038;client=firefox-a&#038;channel=s&#038;rls=org.mozilla%3Aen-US%3Aofficial&#038;hs=NLh&#038;q=powershell+one+liner&#038;btnG=Search&#038;meta=">Google</a></p>
<p>What&#8217;s your Power Line?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.leadfollowmove.com/archives/powershell/power-lines/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
