<?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>The Bits 2.0 &#187; Powershell</title>
	<atom:link href="http://www.thebits.info/category/powershell/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thebits.info</link>
	<description>Not your everyday tech journal</description>
	<lastBuildDate>Sun, 29 Nov 2009 15:03:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Easy sorting with Powershell</title>
		<link>http://www.thebits.info/powershell/easy-sorting-with-powershell-116.htm</link>
		<comments>http://www.thebits.info/powershell/easy-sorting-with-powershell-116.htm#comments</comments>
		<pubDate>Fri, 22 Aug 2008 14:34:14 +0000</pubDate>
		<dc:creator>Lord TCT</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[sorting]]></category>

		<guid isPermaLink="false">http://www.thebits.info/?p=116</guid>
		<description><![CDATA[Say you want to sort the output of &#8220;ls&#8221; (Get-ChildItem) according to file size, date modified or alphabetically, try:
1. Sort according to file size:
ls &#124; sort -property Length
2. Sort according to data modified:
ls &#124; sort -property LastWriteTime
3. Sort according to Name:
ls &#124; sort -property Name
or just simply:
ls
To return a descending list, just add -descending at [...]]]></description>
		<wfw:commentRss>http://www.thebits.info/powershell/easy-sorting-with-powershell-116.htm/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Is there du in Windows?</title>
		<link>http://www.thebits.info/powershell/is-there-du-in-windows-92.htm</link>
		<comments>http://www.thebits.info/powershell/is-there-du-in-windows-92.htm#comments</comments>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<dc:creator>Lord TCT</dc:creator>
				<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://www.thebits.info/?p=92</guid>
		<description><![CDATA[Answer: Yes there is! Prodigy Mark Russinovich wrote the Windows counterpart of UNIX&#8217;s indispensable du command called, uhm, du: http://technet.microsoft.com/en-us/sysinternals/bb896651.aspx
Copy du.exe to %Windir%/System32. (The /usr/bin equivalent of Windows).
To obtain the size of top level subdirectories in a directory, with the largest on first in Bash@Linux, we type:
du &#8211;max-depth=1 &#124; sort -r
The equivalent for Powershell@Windows would [...]]]></description>
		<wfw:commentRss>http://www.thebits.info/powershell/is-there-du-in-windows-92.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grep-ing in Powershell</title>
		<link>http://www.thebits.info/powershell/grep-ing-in-powershell-87.htm</link>
		<comments>http://www.thebits.info/powershell/grep-ing-in-powershell-87.htm#comments</comments>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<dc:creator>Lord TCT</dc:creator>
				<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://www.thebits.info/?p=87</guid>
		<description><![CDATA[UNIX users who are so used to grep would ask &#8220;how do I grep in Powershell?&#8221;. Here&#8217;s how:
In Bash we write:
ls &#124; grep &#8220;.aspx&#8221;
The equivalent in Powershell would be:
ls &#124; where {$_ -match &#8220;.aspx&#8221;}
Bash@Linux output:


[root@gw-1 easilogin]# ls -all &#124; grep ".aspx"
-rwxrwSrwt 1 root root   682 Jul 29 20:38 AccountBanned.aspx
-rwxrwSrwt 1 root root  [...]]]></description>
		<wfw:commentRss>http://www.thebits.info/powershell/grep-ing-in-powershell-87.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
