Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: 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; 'value,': 0.03; 'true,': 0.04; 'grep': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:files': 0.09; 'explicitly': 0.15; 'importing': 0.15; 'csv': 0.16; 'fluent': 0.16; 'message-id:@4ax.com': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'sequence,': 0.16; 'sqlite3': 0.16; 'tweak': 0.16; 'script.': 0.18; 'url:home': 0.18; 'windows': 0.20; 'produces': 0.22; '2015': 0.23; 'import': 0.24; 'sort': 0.25; 'header:X-Complaints-To:1': 0.26; 'chris': 0.26; 'command': 0.28; 'regular': 0.29; 'subject:other': 0.29; '(c)': 0.29; 'books': 0.30; 'that.': 0.30; 'values': 0.30; 'run': 0.32; '2009': 0.34; 'subject:?': 0.34; 'skip:- 10': 0.34; 'to:addr:python-list': 0.35; 'false': 0.35; 'something': 0.35; 'possible': 0.36; 'should': 0.37; 'subject:: ': 0.37; 'charset:us-ascii': 0.37; 'received:org': 0.38; 'enough': 0.39; 'to:addr:python.org': 0.39; 'your': 0.60; 'simple': 0.61; 'grab': 0.61; 'more': 0.62; 'subject:there': 0.66; 'reserved.': 0.70; '+1000,': 0.84; 'books.': 0.84; 'subject:calls': 0.84; 'dennis': 0.91; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Is there a utility to tally function calls from other files? Date: Sun, 14 Jun 2015 12:12:14 -0400 Organization: IISS Elusive Unicorn References: <557C800A.6010107@cdreimer.com> <557C8A47.8080608@cdreimer.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-73-116-76.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 43 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1434298348 news.xs4all.nl 2835 [2001:888:2000:d::a6]:41259 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:92620 On Sun, 14 Jun 2015 05:58:28 +1000, Chris Angelico declaimed the following: > >Hmm, I think the Windows 'find' command can do the same sort of job. >Though it's not hard to grab a Windows port of grep and use that. >Should be easier than writing your own script. > If not "find", it should be possible to run something up in Windows PowerShell -=-=-=-=-=-=-=-=- Windows PowerShell Copyright (C) 2009 Microsoft Corporation. All rights reserved. PS C:\Users\Wulfraed\Documents> Get-ChildItem -Path c:\users\wulfraed -Include *.py -Recurse | Select-String -Pattern import C:\users\wulfraed\AppData\Local\Temp\bak\CSV_DB.py:3:import sqlite3 C:\users\wulfraed\AppData\Local\Temp\bak\CSV_DB.py:4:import csv C:\users\wulfraed\AppData\Local\Temp\bak\CSV_DB.py:5:import os C:\users\wulfraed\AppData\Roaming\calibre\tweaks.py:32:# Set the use_series_auto_increment_tweak_when_importing tweak to True to C:\users\wulfraed\AppData\Roaming\calibre\tweaks.py:33:# use the above values when importing/adding books. If this tweak is set to C:\users\wulfraed\AppData\Roaming\calibre\tweaks.py:35:# explicitly set to during the import. If set to True, then the C:\users\wulfraed\AppData\Roaming\calibre\tweaks.py:37:# Note that the use_series_auto_increment_tweak_when_importing tweak is used C:\users\wulfraed\AppData\Roaming\calibre\tweaks.py:38:# only when a value is not provided during import. If the importing regular C:\users\wulfraed\AppData\Roaming\calibre\tweaks.py:40:# from books and the import plugin produces a value, than that value will C:\users\wulfraed\AppData\Roaming\calibre\tweaks.py:43:use_series_auto_increment_tweak_when_importing = False -=-=-=-=-=-=-=- (Pity I don't use PowerShell enough to be fluent -- I keep having to look up that simple sequence, much less the more powerful features) -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/