bash Cookbook: Solutions and Examples for bash Users
Carl Albing, JP Vossen
O’Reilly Media
<p>For system administrators, programmers, and end users, shell command or carefully crafted shell script can save you time and effort, or facilitate consistency and repeatability for a variety of common tasks. This cookbook provides more than 300 practical recipes for using <i>bash</i>, the popular Unix shell that enables you to harness and customize the power of any Unix or Linux system.</p><p>Ideal for new and experienced users alike—including proficient Windows users and sysadmins—this updated second edition helps you solve a wide range of problems. You’ll learn ways to handle input/output, file manipulation, program execution, administrative tasks, and many other challenges. Each recipe includes one or more scripting examples and a discussion of why the solution works.</p><p>You’ll find recipes for problems including:</p><ul><li>Standard output and input, and executing commands</li><li>Shell variables, shell logic, and arithmetic</li><li>Intermediate shell tools and advanced scripting</li><li>Searching for files with <i>find</i>, <i>locate</i>, and <i>slocate</i></li><li>Working with dates and times</li><li>Creating shell scripts for various end-user tasks</li><li>Working with tasks that require parsing</li><li>Writing secure shell scripts</li><li>Configuring and customizing <i>bash</i></li></ul>