05546nam 22007093u 450 991045670880332120210114144303.01-283-24668-697866132466841-118-16633-7(CKB)2550000000045677(EBL)818941(OCoLC)759397189(SSID)ssj0000596043(PQKBManifestationID)11410501(PQKBTitleCode)TC0000596043(PQKBWorkID)10560459(PQKB)11638717(MiAaPQ)EBC818941(EXLCZ)99255000000004567720130418d2011|||| u|| |engurunu|||||txtccrShell Scripting[electronic resource] Expert Recipes for Linux, Bash and MoreNew York Wiley20111 online resource (603 p.)Wrox guides Shell scriptingDescription based upon print version of record.1-118-54585-0 1-118-02448-6 Shell 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 EditorGraphical 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 VariablesSummary 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 LoopsNested 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 FileRedirecting 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 ArrayAppending to an ArrayA 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 toLinuxOperating systems (Computers)Scripting languages (Computer science)UNIX ShellsOperating systems (Computers)Scripting languages (Computer science)Electronic books.Linux.Operating systems (Computers).Scripting languages (Computer science).UNIX Shells.Operating systems (Computers)Scripting languages (Computer science)005.432Parker Steve912953AU-PeELAU-PeELAU-PeELBOOK9910456708803321Shell Scripting2044763UNINA