commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
This functionality seems to be missing from commands like dpkg. Ideally, I want to duplicate the behavior of rpm --verify, but it seems difficult to do this in one relatively short command pipeline.
works on all Unices
works one bash and ksh.
Filter comments and empty lines in files. I find this very useful when trying to find what values are actually set in a very long example config file.
I often set an alias for it, like :
alias nocomment='grep -v "^\($\|#\)"'