LEADER 05546nam 22007093u 450 001 9910456708803321 005 20210114144303.0 010 $a1-283-24668-6 010 $a9786613246684 010 $a1-118-16633-7 035 $a(CKB)2550000000045677 035 $a(EBL)818941 035 $a(OCoLC)759397189 035 $a(SSID)ssj0000596043 035 $a(PQKBManifestationID)11410501 035 $a(PQKBTitleCode)TC0000596043 035 $a(PQKBWorkID)10560459 035 $a(PQKB)11638717 035 $a(MiAaPQ)EBC818941 035 $a(EXLCZ)992550000000045677 100 $a20130418d2011|||| u|| | 101 0 $aeng 135 $aurunu||||| 181 $ctxt 182 $cc 183 $acr 200 10$aShell Scripting$b[electronic resource] $eExpert Recipes for Linux, Bash and More 210 $aNew York $cWiley$d2011 215 $a1 online resource (603 p.) 225 0 $aWrox guides Shell scripting 300 $aDescription based upon print version of record. 311 $a1-118-54585-0 311 $a1-118-02448-6 327 $aShell Scripting: Expert Recipes for Linux, Bash, and More; Contents at a Glance; Dedication; About the Author; About the Technical Editor; Credits; Acknowledgments; Contents; Introduction; What This Book Covers; How This Book Is Structured; What You Need to Use This Book; Conventions; Source Code; Errata; p2p.wrox.com; Part I: About the Ingredients; Chapter 1: The History of Unix, GNU, and Linux; Unix; "Everything Is a File" and Pipelines; BSD; GNU; Linux; Summary; Chapter 2: Getting Started; Choosing an OS; GNU/Linux; The BSDs; Proprietary Unix; Microsoft Windows; Choosing an Editor 327 $aGraphical Text Editors Terminal Emulation; Nongraphical Text Editors; Setting Up the Environment; The Shell Profile; Aliases; Vim Settings; Summary; Chapter 3: Variables; Using Variables; Typing; Assigning Values to Variables; Positional Parameters; Return Codes; Unsetting Variables; Preset and Standard Variables; BASH_ENV; BASHOPTS; SHELLOPTS; BASH_COMMAND; BASH_SOURCE, FUNCNAME, LINENO and BASH_LINENO; SHELL; HOSTNAME and HOSTTYPE; Working Directory; PIPESTATUS; TIMEFORMAT; PPID; RANDOM; REPLY; SECONDS; BASH_XTRACEFD; GLOBIGNORE; HOME; IFS; PATH; TMOUT; TMPDIR; User Identification Variables 327 $aSummary Chapter 4: Wildcard Expansion; Filename Expansion (Globbing); Bash Globbing Features; Shell Options; Regular Expressions and Quoting; Overview of Regular Expressions; Quoting; Summary; Chapter 5: Conditional Execution; If/Then; Else; elif; Test ([); Flags for Test; File Comparison Tests; String Comparison Tests; Regular Expression Tests; Numerical Tests; Combining Tests; Case; Summary; Chapter 6: Flow Control Using Loops; For Loops; When to Use For Loops; Imaginative Ways of Feeding "For" with Data; C-Style For Loops; While Loops; When to Use While Loops; Ways to Use While Loops 327 $aNested Loops Breaking and Continuing Loop Execution; While with Case; Until Loops; Select Loops; Summary; Chapter 7: Variables Continued; Using Variables; Variable Types; Length of Variables; Special String Operators; Stripping Variable Strings by Length; Stripping from the End of the String; Stripping Strings with Patterns; Searching Strings; Using Search and Replace; Replacing Patterns; Deleting Patterns; Changing Case; Providing Default Values; Indirection; Sourcing Variables; Summary; Chapter 8: Functions and Libraries; Functions; Defining Functions; Function Output; Writing to a File 327 $aRedirecting the Output of an Entire Function Functions with Trap; Recursive Functions; Variable Scope; Libraries; Creating and Accessing Libraries; Library Structures; Network Configuration Library; Use of Libraries; Getopts; Handling Errors; Getopts within Functions; Summary; Chapter 9: Arrays; Assigning Arrays; One at a Time; All at Once; By Index; All at Once from a Source; Read from Input; Accessing Arrays; Accessing by Index; Length of Arrays; Accessing by Variable Index; Selecting Items from an Array; Displaying the Entire Array; Associative Arrays; Manipulating Arrays; Copying an Array 327 $aAppending to an Array 330 $aA compendium of shell scripting recipes that can immediately be used, adjusted, and applied The shell is the primary way of communicating with the Unix and Linux systems, providing a direct way to program by automating simple-to-intermediate tasks. With this book, Linux expert Steve Parker shares a collection of shell scripting recipes that can be used as is or easily modified for a variety of environments or situations. The book covers shell programming, with a focus on Linux and the Bash shell; it provides credible, real-world relevance, as well as providing the flexible tools to 606 $aLinux 606 $aOperating systems (Computers) 606 $aScripting languages (Computer science) 606 $aUNIX Shells 606 $aOperating systems (Computers) 606 $aScripting languages (Computer science) 608 $aElectronic books. 615 4$aLinux. 615 4$aOperating systems (Computers). 615 4$aScripting languages (Computer science). 615 4$aUNIX Shells. 615 0$aOperating systems (Computers) 615 0$aScripting languages (Computer science) 676 $a005.432 700 $aParker$b Steve$0912953 801 0$bAU-PeEL 801 1$bAU-PeEL 801 2$bAU-PeEL 906 $aBOOK 912 $a9910456708803321 996 $aShell Scripting$92044763 997 $aUNINA