Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.048 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; 'emulate': 0.07; 'portable': 0.09; 'python': 0.11; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'invoking': 0.16; 'wrote:': 0.16; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'header:User- Agent:1': 0.26; 'external': 0.27; 'said,': 0.27; 'command': 0.28; 'wraps': 0.29; 'function': 0.30; 'lines': 0.30; "skip:' 10": 0.30; "can't": 0.32; 'message-id:@gmail.com': 0.35; 'could': 0.35; 'to:addr:python-list': 0.35; 'but': 0.36; 'subject:: ': 0.37; 'received:org': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'more': 0.62; 'charset:windows-1252': 0.65; '100': 0.79; 'cecil': 0.84; 'westerhof': 0.84 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Thu, 04 Jun 2015 13:11:00 -0600 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Find in ipython3 References: <87y4k2hyvf.fsf@Equus.decebal.nl> <87vbf4giu6.fsf@Equus.decebal.nl> <87iob3h5id.fsf@Equus.decebal.nl> In-Reply-To: <87iob3h5id.fsf@Equus.decebal.nl> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1433445065 news.xs4all.nl 2919 [2001:888:2000:d::a6]:36538 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:92087 On 06/04/2015 09:12 AM, Cecil Westerhof wrote: >> 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. Like I said, I find ipython to be hackish, but invoking find this way is no more hackish than writing a 100 lines of python just to emulate it. Using these existing external commands is more portable and more robust. You could always write an ipython function that wraps the call to the find command so you don't always have to see it.