Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.pionier.net.pl!feed.xsnews.nl!border03.ams.xsnews.nl!feeder04.ams.xsnews.nl!abp001.ams.xsnews.nl!frontend-F09-08.ams.news.kpn.nl From: Cecil Westerhof Newsgroups: comp.lang.python Subject: Re: Find in ipython3 Organization: Decebal Computing References: <87y4k2hyvf.fsf@Equus.decebal.nl> X-Face: "(y8cC@tg_12{">GF'UXTW]FHI2wMiZNrnf'1EFQ&O#$m:f#O7+7}kR,v+Pti8=Vi/Z"g^?b"E X-Homepage: http://www.decebal.nl/ Date: Thu, 04 Jun 2015 07:09:53 +0200 Message-ID: <87vbf4giu6.fsf@Equus.decebal.nl> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:9WEJIlvMl1xapo9j39xf5Fj/n5c= MIME-Version: 1.0 Content-Type: text/plain Lines: 19 NNTP-Posting-Host: 81.207.62.244 X-Trace: 1433395795 news.kpn.nl 18976 81.207.62.244@kpn/81.207.62.244:42368 Xref: csiph.com comp.lang.python:92030 Op Thursday 4 Jun 2015 04:54 CEST schreef Cameron Simpson: > 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. OK, I will write it. And something to implement du. Thanks. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof