Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: My son wants me to teach him Python

Thread Tools

Re: My son wants me to teach him Python

Cameron Simpson
Posts: n/a
On 14Jun2013 20:12, Dennis Lee Bieber <(E-Mail Removed)> 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...


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

Cameron Simpson <(E-Mail Removed)>

Those who do not understand Unix are condemned to reinvent it, poorly.
- Henry Spencer @ U of Toronto Zoology, Removed)
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
My son wants me to teach him Python John Ladasky Python 28 07-27-2013 12:25 PM
Re: My son wants me to teach him Python Joshua Landau Python 17 06-16-2013 10:33 PM
Re: My son wants me to teach him Python Tomasz Rola Python 2 06-13-2013 05:36 PM
Problem of not knowing a famous Star Email Adress, if one of you know him please drop him a note Diplom Kaufmann Hinrichs - Siegert, Knut Computer Support 0 10-12-2007 07:12 PM
Questions on Using Python to Teach Data Structures and Algorithms efrat Python 2 09-28-2006 11:42 AM