Title Statements
- Full title :Shell scripting recipes : a problem-solution approach / Chris F.A. Johnson, Jayant Varma.
Summary
Filled with over 150 essential, practical recipes that empower Unix users to regain lost time spent creating and testing shell scripts. The majority of scripts included are POSIX-compliant and supported by many of the major shell variants, including Bash, ksh, and sh. Each real-world example recipe follows the same problem-solution structure, meaning cross-referencing is easy and fast. Recipe topics include file conversion (DOS, UNIX, and Mac), system administration, resource monitoring, filename management, complex date calculations, screen control capabilities, and much more. Completely updated for this second edition and taking all the changes of the past ten years into account, every recipe in this book is now relevant for a modern audience. Authors Chris Johnson?s and Jayant Varma?s code is clear, direct, and applicable. Add this excellent reference to your library today.
Read More ↓Edition Statements
- Publication Date:©2015
- Edition:Second edition
Publication Statements
- Publisher(s):Apress
- Place of Publication:Berkeley, CA
- Language:eng
- Publication Date:©2015
Notes
Includes index.
The Physical Object
- Description:1 online resource (1 volume) : : illustrations
Edition Identifiers
- ISBN:9781484202203, 1484202201
- DOI:10.1007/978-1-4842-0220-3
- oclc:ocn929473860
- LC Classification:QA76.76.O63
- Dewey Decimal:004
Table of Contents
At a Glance; Contents; About the Authors; Acknowledgments; Chapter 1: The POSIX Shell and Command-Line Utilities; Shell Commands; echo ; printf ; set ; shift ; type ; getopts ; case ; eval ; local ; Parameters and Variables; Positional Parameters ; Special Parameters ; Shell Variables; standard-vars-A Collection of Useful Variables; Patterns; Pathname Expansion ; Regular Expressions ; Parameter Expansion; The Bourne Shell Expansions ; {var:-DEFAULT}; {var:=DEFAULT}; {var:+VALUE}; {var:?MESSAGE}; POSIX Parameter Expansions.
{#var}-Length of Variable's Contents{var%PATTERN}-Remove the Shortest Match from the End; {var%%PATTERN}-Remove the Longest Match from the End; {var#PATTERN}-Remove the Shortest Match from the Beginning; {var##PATTERN}-Remove the Longest Match from the Beginning; Combining Expansions; Shell-Specific Expansions, bash2, and ksh93 ; {var//PATTERN/STRING}-Replace All Instances of PATTERN with STRING; {var:OFFSET:LENGTH}-Return a Substring of var; Shell Arithmetic ; Aliases ; Sourcing a File ; Functions; Functions Are Fast ; Command Substitution Is Slow.
Using the Functions in This Book standard-funcs: A Collection of Useful Commands; 1.1 get_key-Get a Single Keyst…
Subjects
Writers
More from this Series
No reviews yet. Be the first to rate this work.
Files & Downloads
-
Shell Scripting Recipes: A Problem-Solution Appro…
PDF · 3.7 MB · updated -
Shell Scripting Recipes: A Problem-Solution Appro…
EPUB · 1.3 MB · updated -
Shell Scripting Recipes, 2nd Edition: A Problem-S…
PDF · 4.1 MB · updated
Rate & Review