A trivial script: wcat

October 10, 2006

Here's wcat, which is short for 'web page cat':

exec wget -q -O - "$@"

(At some point I may need to add '-e robots=off' to this, but I haven't needed it yet.)

I have a flaw when it comes to my little scripts: often, I think that sometime is too small and trivial to bother turning into a script, so I don't for ages. And then when I give in and make the script, I rediscover that automation promotes action, because I start using the new script all over.

This is exactly what's happened with wcat; now that I have it, I've been discovering all sorts of situations where it is just what I want, and I can't imagine how and why I lived without it for so long.

(I suspect that pretty soon I am going to find myself writing wless, which will just be something like 'wcat "$@" | less'.)

Written on 10 October 2006.
« I ♥ Fedora Extras
Cross building i386 RPMs on an x86_64 Fedora Core 5 machine »

Page tools: View Source, Add Comment.
Login: Password:
Atom Syndication: Recent Comments.

Last modified: Tue Oct 10 12:36:16 2006
This dinky wiki is brought to you by the Insane Hackers Guild, Python sub-branch.