Book description
Shell scripts are an efficient way to interact with your machine and manage your files and system operations. With just a few lines of code, your computer will do exactly what you want it to do. But you can also use shell scripts for many other essential (and not-so-essential) tasks.
This second edition of Wicked Cool Shell Scripts offers a collection of useful, customizable, and fun shell scripts for solving common problems and personalizing your computing environment. Each chapter contains ready-to-use scripts and explanations of how they work, why you'd want to use them, and suggestions for changing and expanding them. You'll find a mix of classic favorites, like a disk backup utility that keeps your files safe when your system crashes, a password manager, a weather tracker, and several games, as well as 23 brand-new scripts, including:
- A ZIP code lookup tool that reports the city and state
- A Bitcoin address information retriever
- A suite of tools for working with cloud services like Dropbox and iCloud
- Tools for renaming and applying commands to files in bulk
- Image processing and editing tools
Publisher resources
Table of contents
- Cover
- Title Page
- Copyright Page
- About the Authors
- About the Technical Reviewer
- Brief Contents
- Contents in Detail
- Acknowledgments for the First Edition
- Acknowledgments for the Second Edition
- Introduction
- Chapter 0: A Shell Scripts Crash Course
-
Chapter 1: The Missing Code Library
- What Is POSIX?
- #1 Finding Programs in the PATH
- #2 Validating Input: Alphanumeric Only
- #3 Normalizing Date Formats
- #4 Presenting Large Numbers Attractively
- #5 Validating Integer Input
- #6 Validating Floating-Point Input
- #7 Validating Date Formats
- #8 Sidestepping Poor echo Implementations
- #9 An Arbitrary-Precision Floating-Point Calculator
- #10 Locking Files
- #11 ANSI Color Sequences
- #12 Building a Shell Script Library
- #13 Debugging Shell Scripts
- Chapter 2: Improving on User Commands
- Chapter 3: Creating Utilities
- Chapter 4: Tweaking Unix
-
Chapter 5: System Administration: Managing Users
- #35 Analyzing Disk Usage
- #36 Reporting Disk Hogs
- #37 Improving the Readability of df Output
- #38 Figuring Out Available Disk Space
- #39 Implementing a Secure locate
- #40 Adding Users to the System
- #41 Suspending a User Account
- #42 Deleting a User Account
- #43 Validating the User Environment
- #44 Cleaning Up After Guests Leave
- Chapter 6: System Administration: System Maintenance
-
Chapter 7: Web and Internet Users
- #53 Downloading Files via FTP
- #54 Extracting URLs from a Web Page
- #55 Getting GitHub User Information
- #56 ZIP Code Lookup
- #57 Area Code Lookup
- #58 Keeping Track of the Weather
- #59 Digging Up Movie Info from IMDb
- #60 Calculating Currency Values
- #61 Retrieving Bitcoin Address Information
- #62 Tracking Changes on Web Pages
- Chapter 8: Webmaster Hacks
- Chapter 9: Web and Internet Administration
- Chapter 10: Internet Server Administration
- Chapter 11: OS X Scripts
- Chapter 12: Shell Script Fun and Games
- Chapter 13: Working with the Cloud
- Chapter 14: Imagemagick and Working with Graphics Files
- Chapter 15: Days and Dates
- Appendix A: Installing Bash on Windows 10
- Appendix B: Bonus Scripts
- Index
- Resources
- 101 Time-Saving, Problem-Solving Shell Scripts
- Footnote
Product information
- Title: Wicked Cool Shell Scripts, 2nd Edition
- Author(s):
- Release date: October 2016
- Publisher(s): No Starch Press
- ISBN: 9781593276027
You might also like
book
Wicked Cool Shell Scripts
Fun and functional Linux, Mac OS X and UNIX shell scripts The UNIX shell is the …
audiobook
Difficult Conversations
You have to talk with a colleague about a fraught situation, but you're worried that they'll …
audiobook
Generative AI in the Real World: Putting AI in the Hands of Farmers with Rikin Gandhi
If you want to fine-tune your prompting skills, make sure to attend O’Reilly’s Prompt to Product …
book
Shell Scripting: Expert Recipes for Linux, Bash, and More
A compendium of shell scripting recipes that can immediately be used, adjusted, and applied The shell …