Cargando…

Learning Linux Shell scripting : unleash the power of Shell scripts to solve real-world problems by breaking through the practice of writing tedious code /

Annotation

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Naik, Ganesh Sanjiv (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, UK : Packt Publishing, 2015.
Colección:Community experience distilled.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; Acknowledgments; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started and Working with Shell Scripting; Comparison of Shells; Tasks done by Shell; Working in Shell; Learning basic Linux commands; Our first script
  • Hello World; Compiler and interpreter
  • difference in process; When not to use scripts; Various directories; Working more effectively with Shell
  • basic commands; Working with permissions; Changing file permissions; Command chmod; Technique one
  • the symbolic method.
  • Technique two
  • the numeric methodSetting umask; Setuid; Setgid; Sticky bit; Summary; Chapter 2: Drilling Deep into Process Management, Job Control, and Automation; Introducing process basics; Monitoring processes using ps; Process management; Process monitoring tools
  • top, iostat, and vmstat; Understanding at
  • Understanding crontab
  • Summary; Chapter 3: Using Text Processing and Filters in Your Scripts; Text filtering tools; Head and tail; The diff command; The cut command; The paste command; The join command; The uniq command; The comm command; The tr command; IO redirection.
  • Exporting variablesWorking with read-only variables; Working with command line arguments (special variables, set and shift, getopt); Understanding set; Understanding shift; Resetting positional parameters; Understanding getopts; Understanding default parameters; Working with arrays; Creating an array and initializing it; Accessing array values; Summary; Chapter 6: Neat Tricks with Shell Scripting; Interactive Shell scripts
  • reading user input; Summarizing the read command with options; The here document and the <<operator; The here operator with the sort command.
  • The here operator with the wc commandThe utility ed and here operator; A script for sending messages to all logged-in users; Using the <<here operator for FTP usage and data transfer; Turning off variable substitution; The here string and the <<<operator; File handling; Introducing file handling; Using exec to assign file descriptor (fd) to file; Understanding the opening, writing, and closing of a file; Understanding reading from a file; Understanding reading and writing to a file; Using command read on file descriptor (fd); Reading from one file and writing to another file.