pip: A tool to save for later

I forget where I learned about pip. Here’s what it looks like, in action, literally:


(Aren’t animated gifs fun? I should have puzzled that out a long time ago.)

pip is cool because it allows you to use just about any program like a filter, sending data through it and back out again.

It took me a little time to grapple with what was going on there, mostly because I rarely think of things in terms of filters or piping.

But what it means is you can dump text straight into vim (like you see in the gif above), adjust it, then send it on to something else. Clever.

Of course, I can’t remember ever needing something like pip, so it may be a while before I run into an actual case study for pip.

Until then I shall keep it in mind, as a tool to try later. 🙂

7 thoughts on “pip: A tool to save for later

  1. CorkyAgain

    There’s a similar tool called “vipe” in Joey Hess’s moreutils package. Also written in Perl. http://joeyh.name/code/moreutils/

    He gives the following example of its use:

    find foo -type f | vipe | xargs rm

    i.e., find all ordinary files, then edit the resulting list in $EDITOR (removing the ones you don’t want deleted) before passing it on to rm.

  2. Pingback: aspell: A spellchecker at the console | Inconsolation

  3. L Michaels

    I hope you’ll post about how you created you animated screen shots.
    I’ve seen scripts to take screenshots at intervals using Imagemagick’s import program. Should be able to do something similar with scrot or perhaps a program that can take framebuffer screenshots.
    You can put the various screen captures together using gifsicle ( http://www.lcdf.org/gifsicle/ ) to created an animated gif.
    Would be very curious to know if you use a similar technique or if you’ve found another way to do this. Hope you’ll share your technique with us. Thanks.

  4. Pingback: renameutils: Underappreciated tools | Inconsolation

  5. Anonymous Penguin

    wow, name collision with a very important tool: The python package manager.

Comments are closed.