It's dead simple, but great anyway, and, it lets me use ratfinder to browse cpan modules. And to give credit where the credit is due, I'll just embed his gist.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
( [[ -f ~/.app.gz ]] || | |
curl http://cpan.perl.org/modules/02packages.details.txt.gz > ~/.app.gz ) && ( [[ -n $1 ]] && zgrep $* ~/.app.gz ) |
Simple idea, neatly used. curl, file tests, zgrep and some bash bits.
No hay comentarios:
Publicar un comentario