Chapter 8. Scripting techniques
Exploiting script-oriented functions
Executing code conditionally with
Wrangling strings with concatenation and repetition operators
Interpolating command output into source code
Executing OS commands using
Evaluating code using
Those nifty one-line commands you saw in part 1 are easy to type, and they’re adequate for an impressively wide variety of common tasks. And gosh darn it, you might even say they’re cute, if not downright elegant.
But sooner or later, you’ll need to write programs that can validate their arguments, handle arguments that aren’t filenames, capture and manipulate outputs from Unix commands, process inputs ...