Корично изображение Електронна книга

Linux shell scripting cookbook : solve real-world shell scripting problems with over 110 simple but incredible effective recipes /

Annotation GNU/Linux is a remarkable operating system that comes with a complete development environment that is stable, reliable, and extremely powerful. The shell being the native interface to communicate with the operating system is capable of controlling the entire operating system. There are nu...

Пълно описание

Основен автор: Lakshman, Sarath.
Формат: Електронна книга
Език: English
Публикувано: Birmingham : Packt Pub., ℗♭2011.
Предмети:
Онлайн достъп: http://search.ebscohost.com/login.aspx?direct=true&scope=site&db=nlebk&AN=355749
Подобни документи: Print version:: Linux Shell Scripting Cookbook.
Съдържание:
  • 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 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 ...