Book description
Fun and functional Linux, Mac OS X and UNIX shell scripts
The UNIX shell is the main scripting environment of every Linux, Mac OS X and UNIX system, whether a rescued laptop or a million-dollar mainframe. This cookbook of useful, customizable, and fun scripts gives you the tools to solve common Linux, Mac OS X and UNIX problems and personalize your computing environment. Among the more than 100 scripts included are an interactive calculator, a spell checker, a disk backup utility, a weather tracker, and a web logfile analysis tool. The book also teaches you how to write your own sophisticated shell scripts by explaining the syntax and techniques used to build each example scripts. Examples are written in Bourne Shell (sh) syntax.
Table of contents
- Copyright
- Introduction
-
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
-
IMPROVING ON USER COMMANDS
- #14 Formatting Long Lines
- #15 Archiving Files As They're Removed
- #16 Working with the Removed File Archive
- #17 Logging File Removals
- #18 Displaying the Contents of Directories
- #19 Locating Files by Filename
- #20 Emulating Another Environment: DIR
- #21 Digging Around in the Man Page Database
- #22 Displaying the Time in Different Time Zones
- CREATING UTILITIES
- TWEAKING UNIX
-
SYSTEM ADMINISTRATION: MANAGING USERS
- #39 Analyzing Disk Usage
- #40 Reporting Disk Hogs
- #41 Figuring Out Available Disk Space
- #42 Improving the Readability of df Output
- #43 Implementing a Secure Locate
- #44 Adding Users to the System
- #45 Suspending a User Account
- #46 Deleting a User Account
- #47 Validating the User Environment
- #48 Cleaning Up After Guests Leave
- SYSTEM ADMINISTRATION: SYSTEM MAINTENANCE
-
WEB AND INTERNET USERS
- #58 Calculating Time Spent Online
- #59 Downloading Files via FTP
- #60 Tracking BBC News with lynx
- #61 Extracting URLs from a Web Page
- #62 Defining Words Online
- #63 Keeping Track of the Weather
- #64 Checking for Overdue Books at the Library
- #65 Digging Up Movie Info from IMDb
- #66 Calculating Currency Values
- #67 Tracking Your Stock Portfolio
- #68 Tracking Changes on Web Pages
- WEBMASTER HACKS
- WEB AND INTERNET ADMINISTRATION
-
INTERNET SERVER ADMINISTRATION
- #84 Exploring the Apache access_log
- #85 Understanding Search Engine Traffic
- #86 Exploring the Apache error_log
- #87 Avoiding Disaster with a Remote Archive
- #88 Mirroring a Website
- #89 Tracking FTP Usage
- #90 Monitoring Network Status
- #91 Renicing Tasks by Process Name
- #92 Adding New Virtual Host Accounts
- MAC OS X SCRIPTS
- SHELL SCRIPT FUN AND GAMES
- Afterword
- Index
Product information
- Title: Wicked Cool Shell Scripts
- Author(s):
- Release date: January 2004
- Publisher(s): No Starch Press
- ISBN: 9781593270124
You might also like
book
Wicked Cool Shell Scripts, 2nd Edition
Shell scripts are an efficient way to interact with your machine and manage your files and …
book
Wicked Cool Ruby Scripts
Wicked Cool Ruby Scripts is a compendium of scripts that will make your life easier by …
book
Wicked Cool Perl Scripts
Most Perl programmers have been frustrated at one time or another because the system just wouldn't …
video
Great Bash
Great Bash will teach you the fundamentals of bash shell programming, beginning with simple shell scripts …