Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #48426
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <cameron@cskk.homeip.net> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.004 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.06; 'tune': 0.09; '"with"': 0.16; 'finds': 0.16; 'fluent': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'grep': 0.16; 'henry': 0.16; 'hmm.': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'received:211.29': 0.16; 'received:211.29.132': 0.16; 'received:optusnet.com.au': 0.16; 'received:syd.optusnet.com.au': 0.16; 'reinvent': 0.16; 'simpson': 0.16; 'subject:son': 0.16; 'sucked': 0.16; 'variations': 0.16; 'win7': 0.16; 'wrote:': 0.18; 'example': 0.22; 'header:User-Agent:1': 0.23; 'fine': 0.24; 'cheers,': 0.24; "i've": 0.25; 'header:In-Reply-To:1': 0.27; 'unix': 0.29; "i'm": 0.30; 'probably': 0.32; 'could': 0.34; 'but': 0.35; 'there': 0.35; 'received:com.au': 0.36; 'charset:us-ascii': 0.36; 'convention': 0.38; 'received:211': 0.38; 'winning': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'rather': 0.38; 'stock': 0.39; 'to:addr:python.org': 0.39; 'system.': 0.39; 'commands': 0.60; 'content-disposition:inline': 0.62; 'real': 0.63; 'sound': 0.68; 'containing': 0.69; 'gotten': 0.74; 'subject:wants': 0.74; 'toronto': 0.91 |
| Date | Sun, 16 Jun 2013 19:55:34 +1000 |
| From | Cameron Simpson <cs@zip.com.au> |
| To | python-list@python.org |
| Subject | Re: My son wants me to teach him Python |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| In-Reply-To | <oqbnr85meir14rovt24fi0k7q61knf94lt@invalid.netcom.com> |
| User-Agent | Mutt/1.5.21 (2010-09-15) |
| References | <oqbnr85meir14rovt24fi0k7q61knf94lt@invalid.netcom.com> |
| X-Optus-CM-Score | 0 |
| X-Optus-CM-Analysis | v=2.0 cv=eqSHVfVX c=1 sm=1 a=wom5GMh1gUkA:10 a=SRfV-y1nzsEA:10 a=kj9zAlcOel0A:10 a=vrnE16BAAAAA:8 a=ZtCCktOnAAAA:8 a=-LILuAMHU-cA:10 a=QrVWhbZvAAAA:8 a=5BaJOpdBmU96m8HGmZAA:9 a=CjuIK1q_8ugA:10 a=dvoP8UpWvFMOMZw3:21 a=-C7NpFjjprTY37RM:21 a=ChdAjXE5lkUvdteQbhpnkQ==:117 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3432.1371376548.3114.python-list@python.org> (permalink) |
| Lines | 29 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1371376548 news.xs4all.nl 15976 [2001:888:2000:d::a6]:41343 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:48426 |
Show key headers only | View raw
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:-(
Cheers,
--
Cameron Simpson <cs@zip.com.au>
Those who do not understand Unix are condemned to reinvent it, poorly.
- Henry Spencer @ U of Toronto Zoology, henry@zoo.toronto.edu
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: My son wants me to teach him Python Cameron Simpson <cs@zip.com.au> - 2013-06-16 19:55 +1000
csiph-web