Find in ipython3

Cecil Westerhof Cecil at decebal.nl
Thu Jun 4 11:12:26 EDT 2015


Op Thursday 4 Jun 2015 16:27 CEST schreef Grant Edwards:

> On 2015-06-04, Cecil Westerhof <Cecil at decebal.nl> wrote:
>> Op Thursday 4 Jun 2015 04:54 CEST schreef Cameron Simpson:
>>
>>> On 02Jun2015 18:13, Cecil Westerhof <Cecil at decebal.nl> 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



More information about the Python-list mailing list