Image

Bash wonderings.

Hey, I'm pretty good at "reading" bash scripting, but I'm still foggy on actually utilizing it as a powerful tool. I can do scripts that are series of simple commmands, and do so with gusto, but would like to pass some extra info onto my commands so that they in turn can operate with their own extra info.

Something like this:

"script -x" -> "command -yz"


I thought I could probably use a giant cluster of if statments, but that seemed horribly unwieldy.
Is it as simple as just using cases?