Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!border1.nntp.ams1.giganews.com!nntp.giganews.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.83.MISMATCH!newsfeed.xs4all.nl!newsfeed4a.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.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'combines': 0.09; 'cc:addr :python-list': 0.10; 'python': 0.11; '18:13,': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'packard': 0.16; 'simpson': 0.16; 'worst': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.21; 'cc:addr:python.org': 0.21; 'cc:no real name:2**0': 0.23; 'cheers,': 0.24; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'perl': 0.29; 'way?': 0.29; "skip:' 10": 0.30; 'file': 0.34; 'something': 0.35; 'but': 0.36; 'there': 0.36; 'subject:: ': 0.37; 'charset:us-ascii': 0.37; 'aspects': 0.37; 'instead': 0.38; 'easily': 0.39; 'content- disposition:inline': 0.60; 'cameron': 0.66; 'box,': 0.67; 'received:61': 0.72; 'cecil': 0.84; 'westerhof': 0.84 X-Authentication-Info: Submitted using ID cskk@bigpond.com X-Authority-Analysis: v=2.0 cv=EJGEIilC c=1 sm=1 a=N2w12gWX+/QZiuybAQsWDA==:17 a=yEdEr6MRgwAA:10 a=kj9zAlcOel0A:10 a=vrnE16BAAAAA:8 a=ZtCCktOnAAAA:8 a=XAFQembCKUMA:10 a=x-F0LRmwAAAA:8 a=gtmuC5yTxhA7ruMTutEA:9 a=CjuIK1q_8ugA:10 a=N2w12gWX+/QZiuybAQsWDA==:117 Date: Thu, 4 Jun 2015 12:54:47 +1000 From: Cameron Simpson To: Cecil Westerhof Cc: python-list@python.org Subject: Re: Find in ipython3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <87y4k2hyvf.fsf@Equus.decebal.nl> User-Agent: Mutt/1.5.23 (2014-03-12) References: <87y4k2hyvf.fsf@Equus.decebal.nl> 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1433388453 news.xs4all.nl 2907 [2001:888:2000:d::a6]:53192 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:92022 On 02Jun2015 18:13, Cecil Westerhof wrote: >I am thinking about using ipython3 instead of bash. When I want to >find a file I can do the following: > !find ~ -iname '*python*.pdf' >but is there a python way? That succinct? Not out of the box, but something can easily be built on top of the os.walk() function. Cheers, Cameron Simpson Perl combines all of the worst aspects of BASIC, C and line noise. - Keith Packard