Find in ipython3

Cameron Simpson cs at zip.com.au
Wed Jun 3 22:54:47 EDT 2015


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.

Cheers,
Cameron Simpson <cs at zip.com.au>

Perl combines all of the worst aspects of BASIC, C and line noise.
        - Keith Packard <keithp at ncd.com>



More information about the Python-list mailing list