My Account Log in

2 options

Shell Scripting : Expert Recipes for Linux, Bash and More

Ebook Central Academic Complete Available online

View online

Ebook Central College Complete Available online

View online
Format:
Book
Author/Creator:
Parker, Steve.
Series:
Wrox guides Shell scripting
Language:
English
Subjects (All):
Linux.
Operating systems (Computers).
Scripting languages (Computer science).
UNIX Shells.
Local Subjects:
Linux.
Operating systems (Computers).
Scripting languages (Computer science).
UNIX Shells.
Physical Description:
1 online resource (603 p.)
Edition:
1st ed.
Place of Publication:
New York : Wiley, 2011.
Language Note:
English
Summary:
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
Contents:
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
Notes:
Description based upon print version of record.
ISBN:
1-283-24668-6
9786613246684
1-118-16633-7
OCLC:
759397189

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account