Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!feeds.phibee-telecom.net!news.panservice.it!feed.xsnews.nl!border02.ams.xsnews.nl!feeder04.ams.xsnews.nl!feeder02.ams.xsnews.nl!abp002.ams.xsnews.nl!frontend-F10-15.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> <87vbf4giu6.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 17:12:26 +0200 Message-ID: <87iob3h5id.fsf@Equus.decebal.nl> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:KxLv4oAWp5i60XUdXQ3wRsdqQ/k= MIME-Version: 1.0 Content-Type: text/plain Lines: 25 NNTP-Posting-Host: 81.207.62.244 X-Trace: 1433431794 news.kpn.nl 21090 81.207.62.244@kpn/81.207.62.244:46887 Xref: csiph.com comp.lang.python:92065 Op Thursday 4 Jun 2015 16:27 CEST schreef Grant Edwards: > On 2015-06-04, Cecil Westerhof wrote: >> 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. > > Can't IPython just call the find and du utilities? That is what !find ~ -iname '*python*.pdf' does. But I do not find that aesthetically. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof