Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #48426 > unrolled thread
| Started by | Cameron Simpson <cs@zip.com.au> |
|---|---|
| First post | 2013-06-16 19:55 +1000 |
| Last post | 2013-06-16 19:55 +1000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: My son wants me to teach him Python Cameron Simpson <cs@zip.com.au> - 2013-06-16 19:55 +1000
| From | Cameron Simpson <cs@zip.com.au> |
|---|---|
| Date | 2013-06-16 19:55 +1000 |
| Subject | Re: My son wants me to teach him Python |
| Message-ID | <mailman.3432.1371376548.3114.python-list@python.org> |
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 top | Article view | comp.lang.python
csiph-web