Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!not-for-mail From: Grant Edwards Newsgroups: comp.lang.python Subject: Re: Find in ipython3 Date: Thu, 4 Jun 2015 14:27:59 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 20 Message-ID: References: <87y4k2hyvf.fsf@Equus.decebal.nl> <87vbf4giu6.fsf@Equus.decebal.nl> NNTP-Posting-Host: 67-130-15-94.dia.static.qwest.net X-Trace: reader1.panix.com 1433428079 16940 67.130.15.94 (4 Jun 2015 14:27:59 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Thu, 4 Jun 2015 14:27:59 +0000 (UTC) User-Agent: slrn/1.0.1 (Linux) X-Received-Bytes: 1573 X-Received-Body-CRC: 4276242407 Xref: csiph.com comp.lang.python:92061 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? -- Grant Edwards grant.b.edwards Yow! Are we THERE yet? at gmail.com