<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: Windows PowerShell for UNIX shell addicted person</title> <atom:link href="http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Akira Shirase</title><link>http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-171680</link> <dc:creator>Akira Shirase</dc:creator> <pubDate>Wed, 01 Jun 2011 07:04:51 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-171680</guid> <description>guys, talking about powershell makes this page messy, some opinions creates a big questions to some newbies, which one do i have to use? is it the bash or the powershell?? Well, as far as i&#039;m concern, Being a linux users, i do prefer using the terminal and kick off some works using the bash shells, and well, for those who uses windows platforms who are really tired or putting his/her finger on keyboard to type the bash scripts, they can use powershell to fullfill there needs. its depend on them and the platform that they we&#039;re using. but there is so many thing that the linux terminal can do other than the powershell. and that is the fact.</description> <content:encoded><![CDATA[<p>guys, talking about powershell makes this page messy, some opinions creates a big questions to some newbies, which one do i have to use? is it the bash or the powershell?? Well, as far as i&#8217;m concern, Being a linux users, i do prefer using the terminal and kick off some works using the bash shells, and well, for those who uses windows platforms who are really tired or putting his/her finger on keyboard to type the bash scripts, they can use powershell to fullfill there needs. its depend on them and the platform that they we&#8217;re using. but there is so many thing that the linux terminal can do other than the powershell. and that is the fact.</p> ]]></content:encoded> </item> <item><title>By: JohnP</title><link>http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-159585</link> <dc:creator>JohnP</dc:creator> <pubDate>Sun, 12 Sep 2010 21:38:34 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-159585</guid> <description>I&#039;m intrigued by PowerShell as a long time Windows user AND a 20+ yr UNIX admin and C/C++ developer.  I can see where the &quot;object&quot; pipeline may become more powerful after lots of learning, just like Ruby&#039;s methods are nice AFTER you spend the time learning them. When you have 20+ yrs of shell scripting and aliases have been created to &quot;feel like UNIX/Perl&quot;, I have to wonder.  I&#039;m constantly wondering where &#039;egrep&#039; is so I can enter fairly complex regex statements.  Don&#039;t get me started on the array notation - what was wrong with the way PERL did it?  Being different just to be different is an issue, IMHO.
I&#039;m not looking forward to picking up a script from someone who never learned the UNIX way and wasted all that time typing &quot;Get-Selection&quot; or whatever else Microsoft decided to name some command to make it really-really-really long.
Lastly, I wish they could support CRLF and just CR EOLs.  The computer doesn&#039;t care, so why do all the text-based programs on Windows care still?
None of this is meant as a put down towards Powershell - just a few observations.</description> <content:encoded><![CDATA[<p>I&#8217;m intrigued by PowerShell as a long time Windows user AND a 20+ yr UNIX admin and C/C++ developer.  I can see where the &#8220;object&#8221; pipeline may become more powerful after lots of learning, just like Ruby&#8217;s methods are nice AFTER you spend the time learning them. When you have 20+ yrs of shell scripting and aliases have been created to &#8220;feel like UNIX/Perl&#8221;, I have to wonder.  I&#8217;m constantly wondering where &#8216;egrep&#8217; is so I can enter fairly complex regex statements.  Don&#8217;t get me started on the array notation &#8211; what was wrong with the way PERL did it?  Being different just to be different is an issue, IMHO.</p><p>I&#8217;m not looking forward to picking up a script from someone who never learned the UNIX way and wasted all that time typing &#8220;Get-Selection&#8221; or whatever else Microsoft decided to name some command to make it really-really-really long.</p><p>Lastly, I wish they could support CRLF and just CR EOLs.  The computer doesn&#8217;t care, so why do all the text-based programs on Windows care still?</p><p>None of this is meant as a put down towards Powershell &#8211; just a few observations.</p> ]]></content:encoded> </item> <item><title>By: hello kitty</title><link>http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-154202</link> <dc:creator>hello kitty</dc:creator> <pubDate>Wed, 10 Mar 2010 14:07:10 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-154202</guid> <description>JohnnyWang: there is one small flaw in your statement - PowerShell was developed by people who have been using Unix command line for like 20 years, it just uses the object-oriented pipeline instead of text-oriented, so you have to start think in objects... it&#039;s like being angry over object C being too complicated after working with Pascal =)</description> <content:encoded><![CDATA[<p>JohnnyWang: there is one small flaw in your statement &#8211; PowerShell was developed by people who have been using Unix command line for like 20 years, it just uses the object-oriented pipeline instead of text-oriented, so you have to start think in objects&#8230; it&#8217;s like being angry over object C being too complicated after working with Pascal =)</p> ]]></content:encoded> </item> <item><title>By: Ph</title><link>http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-151224</link> <dc:creator>Ph</dc:creator> <pubDate>Sun, 25 Oct 2009 08:49:45 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-151224</guid> <description>(get-command).count</description> <content:encoded><![CDATA[<p>(get-command).count</p> ]]></content:encoded> </item> <item><title>By: Richard Berg</title><link>http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-151166</link> <dc:creator>Richard Berg</dc:creator> <pubDate>Thu, 22 Oct 2009 17:25:13 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-151166</guid> <description>(get-command).length
OR, for more complete processing,
get-command &#124; measure</description> <content:encoded><![CDATA[<p>(get-command).length</p><p>OR, for more complete processing,</p><p>get-command | measure</p> ]]></content:encoded> </item> <item><title>By: fez</title><link>http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-150980</link> <dc:creator>fez</dc:creator> <pubDate>Wed, 07 Oct 2009 17:24:48 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-150980</guid> <description>im a linux geek working in a microsoft shop. i&#039;m just learning powershell, but i&#039;ve been blown away by how capable it is. truly amazing. one thing that seems interesting is that powershell appears to have found all my cygwin commands as well. so from right in powershell i can use less, vim, tail, grep....
however for the command count thing i&#039;d go with this:
$commands = get-command
$commands.length
or more concisely how about
$(get-command).length</description> <content:encoded><![CDATA[<p>im a linux geek working in a microsoft shop. i&#8217;m just learning powershell, but i&#8217;ve been blown away by how capable it is. truly amazing. one thing that seems interesting is that powershell appears to have found all my cygwin commands as well. so from right in powershell i can use less, vim, tail, grep&#8230;.</p><p>however for the command count thing i&#8217;d go with this:</p><p>$commands = get-command<br
/> $commands.length</p><p>or more concisely how about<br
/> $(get-command).length</p> ]]></content:encoded> </item> <item><title>By: Johnny Wang</title><link>http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-150553</link> <dc:creator>Johnny Wang</dc:creator> <pubDate>Mon, 07 Sep 2009 16:49:27 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-150553</guid> <description>Okay, so I want to count the number of commands returned by get-command cmdlet
get-command &#124; WHAT THE FIRK DO  I PUT HERE?
in unix it would be: ls /usr/bin &#124; wc -l
in Powershell, you have to know a billion frikking options and dash this and dollar underscore that before you get something simple like commanline.
Microsoft has NEVER thought of commandline as the first class citizen and it still shows. MS people are going gaga over this because they have never felt the power of the unix commandline.
I can have a regular user be productive with a subset of unix shell commands.
in Powershell, either you&#039;re a hotshot VB / .Net programmer (in which case you know the object hierarchy) or you&#039;re screwed!
Tell me how I count th number of commands outputted by get-command?
is this get-command -text output -count ?
nope
is this get-command &#124; get-count?
nope
WTF is it?</description> <content:encoded><![CDATA[<p>Okay, so I want to count the number of commands returned by get-command cmdlet</p><p>get-command | WHAT THE FIRK DO  I PUT HERE?</p><p>in unix it would be: ls /usr/bin | wc -l</p><p>in Powershell, you have to know a billion frikking options and dash this and dollar underscore that before you get something simple like commanline.</p><p>Microsoft has NEVER thought of commandline as the first class citizen and it still shows. MS people are going gaga over this because they have never felt the power of the unix commandline.</p><p>I can have a regular user be productive with a subset of unix shell commands.</p><p>in Powershell, either you&#8217;re a hotshot VB / .Net programmer (in which case you know the object hierarchy) or you&#8217;re screwed!</p><p>Tell me how I count th number of commands outputted by get-command?</p><p>is this get-command -text output -count ?</p><p>nope</p><p>is this get-command | get-count?</p><p>nope</p><p>WTF is it?</p> ]]></content:encoded> </item> <item><title>By: damion lusterman</title><link>http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-148476</link> <dc:creator>damion lusterman</dc:creator> <pubDate>Thu, 07 May 2009 21:20:49 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-148476</guid> <description>&quot;PowerShell which Windows copied from Unix&quot;
thats like saying Unix copied punch cards...or IBM terminals
you need to input things into a computer...a black screen with a promt is the easy way to do  it. The features of the UNIX command shell are standard routines a computer should be able to do....
BASH (most popular unix around right now) has less features then windows powershell.
the only main problem is with job control, but they are adding that in with powershell 2.0</description> <content:encoded><![CDATA[<p>&#8220;PowerShell which Windows copied from Unix&#8221;</p><p>thats like saying Unix copied punch cards&#8230;or IBM terminals</p><p>you need to input things into a computer&#8230;a black screen with a promt is the easy way to do  it. The features of the UNIX command shell are standard routines a computer should be able to do&#8230;.</p><p>BASH (most popular unix around right now) has less features then windows powershell.</p><p>the only main problem is with job control, but they are adding that in with powershell 2.0</p> ]]></content:encoded> </item> <item><title>By: Dunpeal</title><link>http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-145740</link> <dc:creator>Dunpeal</dc:creator> <pubDate>Thu, 27 Nov 2008 18:25:45 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-145740</guid> <description>I tested the new PowerShell which Windows copied from Unix, a lot of things are still missing. It has about 60% of it&#039;s power, but it does not equal to the command line shell of unix. Linux has always been my choice for work, wouldn&#039;t change it for Windows still. Unfortunately a lot of companies use only Windows, it can be a lot of unnecessary drag.</description> <content:encoded><![CDATA[<p>I tested the new PowerShell which Windows copied from Unix, a lot of things are still missing. It has about 60% of it&#8217;s power, but it does not equal to the command line shell of unix. Linux has always been my choice for work, wouldn&#8217;t change it for Windows still. Unfortunately a lot of companies use only Windows, it can be a lot of unnecessary drag.</p> ]]></content:encoded> </item> <item><title>By: Barry Kelly</title><link>http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-142489</link> <dc:creator>Barry Kelly</dc:creator> <pubDate>Tue, 15 Jan 2008 15:19:50 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-142489</guid> <description>A big limitation with PowerShell, though, is job control. The pipes don&#039;t work in a concurrent style. For the kind of scripts I write on my machines (all are at least 2-core, my main desktop 4-core), a careful bit of:
&lt;code&gt;
(
echo &quot;Foos and bars:&quot;
(
foo &#124; foo2 &#124; foo3 &gt; foo.out &amp;
bar &#124; bar2 &gt; bar.out &amp;
wait
)
sort foo.out bar.out
) &#124; baz2 &#124; ... &amp;
&lt;/code&gt;
... etc. works wonders for running times.</description> <content:encoded><![CDATA[<p>A big limitation with PowerShell, though, is job control. The pipes don&#8217;t work in a concurrent style. For the kind of scripts I write on my machines (all are at least 2-core, my main desktop 4-core), a careful bit of:</p><p><code><br
/> (<br
/> echo "Foos and bars:"<br
/> (<br
/> foo | foo2 | foo3 &gt; foo.out &amp;<br
/> bar | bar2 &gt; bar.out &amp;<br
/> wait<br
/> )<br
/> sort foo.out bar.out<br
/> ) | baz2 | ... &amp;<br
/> </code></p><p>&#8230; etc. works wonders for running times.</p> ]]></content:encoded> </item> <item><title>By: Dmitry Kalashnikov</title><link>http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-142198</link> <dc:creator>Dmitry Kalashnikov</dc:creator> <pubDate>Tue, 18 Dec 2007 04:41:51 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-142198</guid> <description>Hey guys, I&#039;ve been a UNIX developer for a long time, mainly working on FreeBSD, OpenBSD and Linux platforms.
I am now working at Microsoft, and I do a lot of stuff with powershell. As far as Cygwin or JPSoft stuff being &quot;way better&quot; I&#039;ll have to disagree:
* Powershell is much more powerfull: it doesn&#039;t work on text streams, like unix shells. It (only) works on objects. So input/output pipelines are all .NET objects.
* Powershell, as language is much more expressive then any UNIX shell, period. The closest thing that can match it is Perl 6 or Ruby.
* For Windows scripting, it is the best choice because its specifically made for it. Its tied into Windows (registry, etc).
* It has built-in aliases for most common UNIX commands (ls, cat, ps ... etc), so you don&#039;t have to get used to Windows cmd.exe command alternatives. If you just open powershell terminal you should feel right at home!
Check out PowerTab sometime ...
-Dmitry</description> <content:encoded><![CDATA[<p>Hey guys, I&#8217;ve been a UNIX developer for a long time, mainly working on FreeBSD, OpenBSD and Linux platforms.</p><p>I am now working at Microsoft, and I do a lot of stuff with powershell. As far as Cygwin or JPSoft stuff being &#8220;way better&#8221; I&#8217;ll have to disagree:</p><p>* Powershell is much more powerfull: it doesn&#8217;t work on text streams, like unix shells. It (only) works on objects. So input/output pipelines are all .NET objects.</p><p>* Powershell, as language is much more expressive then any UNIX shell, period. The closest thing that can match it is Perl 6 or Ruby.</p><p>* For Windows scripting, it is the best choice because its specifically made for it. Its tied into Windows (registry, etc).</p><p>* It has built-in aliases for most common UNIX commands (ls, cat, ps &#8230; etc), so you don&#8217;t have to get used to Windows cmd.exe command alternatives. If you just open powershell terminal you should feel right at home!</p><p>Check out PowerTab sometime &#8230;</p><p>-Dmitry</p> ]]></content:encoded> </item> <item><title>By: Joe</title><link>http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-28054</link> <dc:creator>Joe</dc:creator> <pubDate>Wed, 15 Nov 2006 05:12:18 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-28054</guid> <description>I&#039;ve never heard of those two either, however, from the little I&#039;ve used Powershell, I&#039;ve enjoyed it.
There&#039;s also IronPython which was just released not too long ago. With it, you can access all of .NET, WMI, and even interface with PowerShell through a Python environment.</description> <content:encoded><![CDATA[<p>I&#8217;ve never heard of those two either, however, from the little I&#8217;ve used Powershell, I&#8217;ve enjoyed it.</p><p>There&#8217;s also IronPython which was just released not too long ago. With it, you can access all of .NET, WMI, and even interface with PowerShell through a Python environment.</p> ]]></content:encoded> </item> <item><title>By: nixcraft</title><link>http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-27982</link> <dc:creator>nixcraft</dc:creator> <pubDate>Wed, 15 Nov 2006 02:59:28 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-27982</guid> <description>Jonathan,
4NT or TakeCommand is new information for me.  I was only aware of Cygwin which a quite good choice...
I am downloading 4NT/Take Command 30 days trial. We might end up purchasing few copies :)
Appreciate your post!</description> <content:encoded><![CDATA[<p>Jonathan,</p><p>4NT or TakeCommand is new information for me.  I was only aware of Cygwin which a quite good choice&#8230;</p><p>I am downloading 4NT/Take Command 30 days trial. We might end up purchasing few copies :)</p><p>Appreciate your post!</p> ]]></content:encoded> </item> <item><title>By: Jonathan</title><link>http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-27981</link> <dc:creator>Jonathan</dc:creator> <pubDate>Wed, 15 Nov 2006 02:44:39 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/windows-powershell-for-unix-shell-addicted-person.html#comment-27981</guid> <description>There are two *way* better commandline options for Windows than the &quot;Power Shell&quot;:
1] JPSofts 4NT or TakeCommand. They&#039;re pretty expensive @ US$75 each, but I&#039;ve been using 4NT for a dozen years or more and would be lost without its power. http://www.jpsoft.com
2] Lately though I&#039;ve become a real Cygwin addict.  It&#039;s a bit tricky to set up, but it is a very active group and they do a bang-up job of keeping the environment Linux compatible, right down to the latest controversial change where Bash doesn&#039;t like CR/LF, just like on Linux:-) http://www.cygwin.com</description> <content:encoded><![CDATA[<p>There are two *way* better commandline options for Windows than the &#8220;Power Shell&#8221;:</p><p>1] JPSofts 4NT or TakeCommand. They&#8217;re pretty expensive @ US$75 each, but I&#8217;ve been using 4NT for a dozen years or more and would be lost without its power. <a
href="http://www.jpsoft.com" rel="nofollow">http://www.jpsoft.com</a></p><p>2] Lately though I&#8217;ve become a real Cygwin addict.  It&#8217;s a bit tricky to set up, but it is a very active group and they do a bang-up job of keeping the environment Linux compatible, right down to the latest controversial change where Bash doesn&#8217;t like CR/LF, just like on Linux:-) <a
href="http://www.cygwin.com" rel="nofollow">http://www.cygwin.com</a></p> ]]></content:encoded> </item> </channel> </rss>
