Linux shell scripting cookbook : solve real-world shell scripting problems with over 110 simple but incredible effective recipes /: solve real-world shell scripting problems with over 110 simple but incredible effective recipes. (©2011)
- Record Type:
- Book
- Title:
- Linux shell scripting cookbook : solve real-world shell scripting problems with over 110 simple but incredible effective recipes /: solve real-world shell scripting problems with over 110 simple but incredible effective recipes. (©2011)
- Main Title:
- Linux shell scripting cookbook : solve real-world shell scripting problems with over 110 simple but incredible effective recipes
- Further Information:
- Note: Sarath Lakshman.
- Other Names:
- Lakshman, Sarath
- Contents:
- Table of Contents; Linux Shell Scripting Cookbook; Linux Shell Scripting Cookbook; Credits; About the Author; About the Reviewers; www.PacktPub.com; Support files, eBooks, discount offers, and more; Why Subscribe?; Free Access for Packt account holders; Preface; What this book covers; What you need for this book; Who this book is for; Conventions; Reader feedback; Customer support; Errata; Piracy; Questions; 1. Shell Something Out; Introduction; Printing in the terminal; How to do it ... ; There's more ... ; Escaping newline in echo; Printing colored output. Playing with variables and environment variablesGetting ready; How to do it ... ; There's more ... ; Finding length of string; Identifying the current shell; Check for super user; Modifying the Bash prompt string (username@hostname:~); Doing math calculations with the shell; Getting ready; How to do it ... ; Playing with file descriptors and redirection; Getting ready; How to do it ... ; There's more ... ; Redirection from file to command; Redirecting from a text block enclosed within a script; Custom file descriptors; Arrays and associative arrays; Getting ready; How to do it ... ; There's more ... Defining associative arraysListing of array indexes; Visiting aliases; Getting ready; How to do it ... ; There's more ... ; Escaping aliases; Grabbing information about terminal; Getting ready; How to do it ... ; Getting, setting dates, and delays; Getting ready; How to do it ... ; There's more ... ; Producing delays in aTable of Contents; Linux Shell Scripting Cookbook; Linux Shell Scripting Cookbook; Credits; About the Author; About the Reviewers; www.PacktPub.com; Support files, eBooks, discount offers, and more; Why Subscribe?; Free Access for Packt account holders; Preface; What this book covers; What you need for this book; Who this book is for; Conventions; Reader feedback; Customer support; Errata; Piracy; Questions; 1. Shell Something Out; Introduction; Printing in the terminal; How to do it ... ; There's more ... ; Escaping newline in echo; Printing colored output. Playing with variables and environment variablesGetting ready; How to do it ... ; There's more ... ; Finding length of string; Identifying the current shell; Check for super user; Modifying the Bash prompt string (username@hostname:~); Doing math calculations with the shell; Getting ready; How to do it ... ; Playing with file descriptors and redirection; Getting ready; How to do it ... ; There's more ... ; Redirection from file to command; Redirecting from a text block enclosed within a script; Custom file descriptors; Arrays and associative arrays; Getting ready; How to do it ... ; There's more ... Defining associative arraysListing of array indexes; Visiting aliases; Getting ready; How to do it ... ; There's more ... ; Escaping aliases; Grabbing information about terminal; Getting ready; How to do it ... ; Getting, setting dates, and delays; Getting ready; How to do it ... ; There's more ... ; Producing delays in a script; Debugging the script; Getting ready; How to do it ... ; There's more ... ; Shebang hack; Functions and arguments; How to do it ... ; There's more ... ; Recursive function; Exporting functions; Reading command return value (status); Passing arguments to commands. Reading the output of a sequence of commandsGetting ready; How to do it ... ; There's more ... ; Spawning a separate process with subshell; Subshell quoting to preserve spacing and newline character; Reading ""n"" characters without pressing Return; Getting ready; How to do it ... ; Field separators and iterators; Getting ready; How to do it ... ; Comparisons and tests; Getting ready; How to do it ... ; 2. Have a Good Command; Introduction; Concatenating with cat; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Squeezing blank lines; Displaying tabs as I; Line numbers. Recording and playback of terminal sessionsGetting ready; How to do it ... ; How it works ... ; Finding files and file listing; Getting ready; How to do it ... ; There's more ... ; Search based on file name or regular expression match; Negating arguments; Search based on the directory depth; Search based on file type; Search on up file times; Search based on file size; Deleting based on the file matches; Match based on the file permissions and ownership; Executing commands or actions with find; Skip specified directories from the find; Playing with xargs; Getting ready; How to do it ... ; How it works ... … (more)
- Publisher Details:
- Birmingham : Packt Pub
- Publication Date:
- 2011
- Copyright Date:
- 2011
- Extent:
- 1 online resource (iv, 345 pages), illustrations
- Subjects:
- 005.4/32
Operating systems (Computers)
Command languages (Computer science)
Scripting languages (Computer science)
COMPUTERS -- Operating Systems -- Linux
COMPUTERS -- Operating Systems -- UNIX
COMPUTERS -- System Administration -- Linux & UNIX Administration
Command languages (Computer science)
Operating systems (Computers)
Electronic books - Languages:
- English
- ISBNs:
- 9781849513777
1849513775
1849513767
9781849513760 - Access Rights:
- Legal Deposit; Only available on premises controlled by the deposit library and to one user at any one time; The Legal Deposit Libraries (Non-Print Works) Regulations (UK).
- Access Usage:
- Restricted: Printing from this resource is governed by The Legal Deposit Libraries (Non-Print Works) Regulations (UK) and UK copyright law currently in force.
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library HMNTS - ELD.DS.89699
- Ingest File:
- 01_098.xml