Bash-Fu
bash-fu.com
bash-fu.com
Yes, using Ruby introduces a dependency beyond Unix. But I already use lots of libraries (Rails, Rspec, etc) and tools (ImageMagick, Ghostscript), so I don't see that as a problem, just part of the job.
Bash scripting is good for running a few commands in a sequence, but in my experience gets unmaintainable and unreadable very quickly, especially if you try to do sane error handling/logging, or operations on non-text data.
require 'fileutils'
include FileUtils
...and you can almost pretend you are writing bash.I can't edit my post anymore, but I remembered that there is a similarly named site for command line tricks:
If you're going to make a site and call it bash-fu, shouldn't you make sure your bash is at least good?
If it's a straight shell script, use "#!/bin/sh" please. If the script actually requires bash features, I'd appreciate "#!/usr/bin/env bash" because if I choose to install bash, it probably won't be in /bin.