Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: My son wants me to teach him Python (http://www.velocityreviews.com/forums/t961858-re-my-son-wants-me-to-teach-him-python.html)

Ian Kelly 06-17-2013 10:32 PM

Re: My son wants me to teach him Python
 
On Sun, Jun 16, 2013 at 3:55 AM, Cameron Simpson <cs@zip.com.au> wrote:
> On 14Jun2013 20:12, Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote:
> | [...] PowerShell has been
> | available as a download on WinXP and standard on Win7 [PS 3 is a
> | download for Win7, stock on real Win8].
> | While I'm not fluent in it, there are some commands I've gotten
> | rather engrained...
> |
> | get-childitem -recurse -filter "*.ad*" | select-string -pattern "with"
> |
> | finds all the Ada (GNAT convention .ads/.adb) files containing "with"
> | statements. And pattern probably is a regex so I could fine tune it to
> | just the package withs by using a start of line marker...
>
> Hmm.
>
> find . -name '*.ad*' | xargs grep with
>
> on almost any UNIX system. There's any number of variations on that
> depending on exactly what you want. I'm not going to get sucked
> into a UNIX/Windows bickerfest here, but your PowerShell example
> isn't winning me over. Sound like they reinvented the wheel. Again,
> years later:-(


As I understand it, PowerShell is intended primarily for automation
and scripting, not for interactive console use.


All times are GMT. The time now is 01:38 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.