Vai al contenuto principale della pagina

Shell Scripting : Expert Recipes for Linux, Bash and More



(Visualizza in formato marc)    (Visualizza in BIBFRAME)

Autore: Parker Steve Visualizza persona
Titolo: Shell Scripting : Expert Recipes for Linux, Bash and More Visualizza cluster
Pubblicazione: New York, : Wiley, 2011
Edizione: 1st ed.
Descrizione fisica: 1 online resource (603 p.)
Disciplina: 005.432
Soggetto topico: Linux
Operating systems (Computers)
Scripting languages (Computer science)
UNIX Shells
Note generali: Description based upon print version of record.
Nota di contenuto: 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 Editor
Graphical 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
Summary 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
Nested 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
Redirecting 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
Appending to an Array
Sommario/riassunto: A 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
Titolo autorizzato: Shell Scripting  Visualizza cluster
ISBN: 1-283-24668-6
9786613246684
1-118-16633-7
Formato: Materiale a stampa
Livello bibliografico Monografia
Lingua di pubblicazione: Inglese
Record Nr.: 9910962230403321
Lo trovi qui: Univ. Federico II
Opac: Controlla la disponibilità qui