The old boy new book Shell programming actual combat scheduled to begin-Package parcel answer

Source: Internet
Author: User
Tags case statement define local echo command function definition rsync

Old boy new book Shell programming Real-time scheduled to start (scan the QR code to purchase the regular package of mail), dear friends, keep you waiting. Computer User Poke Computer Purchase links

Note: Package parcel post 3 months (after 2017 Chinese New Year) Q Group book content answer questions, is equal to white send book, also inverted answer service.

If you feel the power, please help Friends Circle, QQ Group, Space reprint!

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/8C/AB/wKiom1hzlFWAnJ1TAAMONFgyHOI219.png "title=" a.png "alt=" Wkiom1hzlfwanj1taamonfgyhoi219.png "/>


Event offers are only available for this event and are not eligible to be purchased from other sources.


Pricing 89 Yuan Basic information

Old boy

Series Name: Linux/unix Technical Series

Publishing house: Mechanical Industry Press isbn:9787111556077

Last Date: 2017-1-6

Publication date: January 2017

Folio: 16 in Open edition:

1-1 Category: Computer

Editor's recommendation senior operation and maintenance architecture actual combat experts and education and training experts more than 10 years of operational experience summary, a comprehensive and systematic explanation of operations in the Shell programming required knowledge points and shell programming of various enterprise-class case, not only to explain the shell programming involved in the various core technology points, Also use shell programming for the entire enterprise site cluster architecture of multiple network services in the deployment, optimization, automation operations and monitoring and other aspects of the practice, and guide you to carefully master shell programming operation and maintenance specifications and methods.

Catalogue Preface   1th chapter   How to learn shell programming  / 1 1.1  Why learn Shell programming  / 1 1.2  Learn the basics of Shell programming  / 1 1.3  How to learn the "veteran" experience of Shell programming  / 3 1.4  What shell programming heights can be achieved after completing this book  / 5  2nd Chapter  shell Script Preliminary Introduction  / 6 2.1  what is shell /  6 2.2  What is the position of Shell script  / 7 2.3 shell script in Linux operation  / 8 2.4  Types of scripting languages  / 9 2.4.1 shell types of scripting languages  / 9 2.4.2  Other common scripting language types  / 10  2.4.3 shell scripting language Benefits  / 11 2.5  Common operating system default shell / 11 2.6  Creation and execution of shell scripts  / 12 2.6.1 shell scripts  / 12 2.6.2 shell execution of scripts  /  15 2.6.3 shell basic specifications and habits of script Development  / 19  3rd Chapter  shell the core basic knowledge and practice of variable  / 22 3.1   What are shell variables  / 22 3.2  environment Variables  / 23 3.2.1  Custom environment variables  / 26  3.2.2  display and cancel environment variables  / 28 3.2.3  environment variable initialization and corresponding file effective order  / 30 3.3  Normal variable  / 31 3.3.1  define local variable  / 31  3.3.2  variable definition and variable output description  / 35 3.4  variable definition Tips Summary  / 40  4th Chapter  shell Variable knowledge advance and practice Special positional parameter variables in  / 41 4.1.1 shell of special and important variables in  / 41 4.1 shell  / 41  4.1.2 shell Special state variables in the process  / 47 4.2 bash shell built-in variable commands  / 52 4.3 Knowledge of  shell variable quantum strings and practice of  / 55 4.3.1 shell variable Quantum string introducing  / 55 4.3.2 shell variable Quantum string  / 56 4.3.3  application Case of variable quantum string  / 59 4.4 shell knowledge and practice of special extended variables  / 60  4.4.1 shell Special Extended Variable Introduction  / 60 4.4.2 shell The practice of special extended variables  / 61 4.4.3  Shell Special Extended Variable production scenario application Case  / 63  5th Chapter   Numerical calculation practice of variables  / 65 5.1  arithmetic operator  / 65  5.2  Double Parenthesis "(())" Numeric operation command  / 66 5.2.1  double parenthesis "(())" The underlying syntax for numeric operations  / 66 5.2.2   Double Parenthesis "(())" Numerical Operation practice  /&NBUsage of the sp;66 5.3 let operation Command  / 73 5.4 expr command  / 75 5.4.1  Basic usage example of the expr command  / 75 5.4.2 expr Enterprise-class case Study  / 76 5.5 BC command usage  /  81 5.6 awk the use of the  / 83 5.7 declare (same typeset) command is implemented  / 83 5.8 $[] Example of operation of symbols  / 83 5.9  operation practice of Input Read command based on Shell variable  / 84 5.9.1 read command base  /  84 5.9.2  Integrated Enterprise case with read command and Reference  / 87  6th Chapter  shell Script Conditional test and comparison  / 92  6.1 shell a review of conditional testing  / 92 6.1.1  condition testing methods for scripts  / 92 6.1.2 test simple syntax and examples of conditional tests  / 93 6.1.3 [] (brackets) condition test syntax and example  / 94 6.1.4 [[]] condition test syntax and example  / 95  6.2  file test expression  / 97 6.2.1  file test expression Usage  / 97 6.2.2  file Test expression example  / 97 6.2.3  Special condition test expression case  / 101 6.3  string test expression  / 102 6.3.1   String test operator  / 102 6.3.2  string Test production case  / 104 6.4  Integer two $ comparison operator  / 105 6.4.1  Integer two $ comparison operator introduction  / 105 6.4.2  example of integer variable test practice  / 107 6.5  logic operator  / 108 6.5.1   Logical operator Introduction  / 108 6.5.2  logic operator Practice example  / 110 6.5.3  logic operator Enterprise Case  /  112 6.6  the difference between test expression tests, [], [[]], (()) Summary  / 120  7th Chapter  if Knowledge and practice of conditional statements  / 121  7.1 IF Conditional Statement  / 121 7.1.1 IF conditional statement Syntax  / 121 7.1.2 if Conditional statement multiple conditional expression syntax In-depth practice of  / 126 7.1.4 if conditional statements in  / 125 7.1.3  single-branch if conditional statements  / 130  7.2 IF conditional Statements Enterprise case explaining  / 132 7.2.1  monitoring web and database Enterprise case  / 132 7.2.2  Comparison of the size of the classic expansion case  / 142 7.2.3  determine whether the string is a number of ideas  / 143 7.2.4  determine whether the string length is 0 of a variety of ideas  / 145 7.2.5  more production Scenarios Practical cases  / 145  8th Chapter  shell Knowledge and practice of functions  / 151  Introduction to the concept and function of 8.1 shell function  /&nbExecution of the syntax  / 152 8.3 shell function of the Sp;151 8.2 shell function  / 152 8.4  Basic practice of Shell functions  / 153 8.5  development of enterprise URL detection scripts using Shell functions  / 155 8.6  Use shell functions to develop a one-click Optimization System script  / 158 8.7  develop rsync services with shell functions startup scripts  / 166  9th   Application practice of Case Conditional statement  / 169 9.1 case Syntax  / 169 9.2 case conditional statement Practice  /  171 9.3  Practice: Add color to the output string  / 176 9.3.1  to the output string and color the basics  / 176 9.3.2   Combine case statements to add color to the output string  / 177 9.3.3  to the output string plus background color  / 180 9.4  Case statement Examples of Linux system scripts for enterprise-class production cases  / 181 9.5 case conditional statements  / 187 9.6  Chapter Summary  /  191  10th the application practice of  while cycle and until cycle  / 192 10.1  type and until type loop syntax  / 192  10.1.1 while Loop Statements  / 192 10.1.2 until Loop Statements  / 193 10.2  Basic examples of patterns and loops  / 194 10.3  let the shell script run in the background knowledge  / 195 10.4  Enterprise Production Combat: While loop statement practice  / 206 10.5 while Loop read file by line summary  / 210  10.6  Enterprise Production Advanced Practical Case  / 211 10.7  Chapter Summary  / 215  11th Chapter Application of  for and select Loop statements The basic practice of  / 217 11.1 for loop grammatical structure  / 217 11.2 for Circular statement  / 219  11.3 for Enterprise Case  / 222 11.4 for Loop Statement Enterprise Advanced Practical Case  / 230 11.5  6 methods of generating random number in Linux system  / 239 11.6 select Loop statement and Syntax  / 241 11.7 select Loop statement case  / 242  12th Chapter   Application of cyclic control and state return value  / 249 12.1 break, continue, exit, Return difference and contrast  / 249 12.2 break, continue, Exit Function execution Flowchart  / 249 12.3 break, Continue, exit, return command Basic example  / 251 12.4  loop control and status return value Enterprise case  / 253  13th   Application practice of Shell Arrays  / 260 13.1 shell Array Introduction  / 260 13.1.1  Why a shell array is generated  /  260 13.1.2  What is a shell array  /The definition of  260 13.2 shell array and the definition of  / 261 13.2.1 shell array for adding and pruning  / 261  13.2.2 shell array printing and output  / 262 13.3 shell array script development Practice  / 265 13.4  Important commands for Shell arrays  / 267 13.5 shell array related questions and advanced practical cases  / 268 13.6  qualified OPS list of required scripts  / 277  14th Chapter  shell Script Development Specification  / 279 14.1 shell Script Basic Specification  / 279  14.2 shell script variable naming and reference variable specification  / 281 14.3 shell function naming and function definition specification  / 282 14.4  Shell script (module) Advanced naming specification  / 283 14.5 shell script code style  / 283 14.5.1  code Framework  /  283 14.5.2  Indentation Specification  / 284 14.6 shell script variables and file inspection Specification  / 285  15th Chapter  shell Script Debug  / 286 15.1  Common Shell script error example  / 286 15.1.1 if conditional statement missing end keyword  / 286 15.1.2  loop statement missing keyword  / 287 15.1.3  paired symbol left single  / 287  15.1.4  There are no spaces at both ends of the brackets  / 288&nbsP;15.1.5 shell Syntax Debugging summary  / 289 15.2 shell script debugging Tips  / 289 15.2.1  Use the Dos2unix command to process scripts developed under Windows  / 289 15.2.2  Debug with the echo command  / 290 15.2.3  Debugging with bash command parameters  / 291 15.2.4  Debugging part of the script content with the SET command  / 294 15.2.5  other tools for debugging shell scripts  / 296 15.3  Chapter Summary  / 296  16th Chapter  shell Configuration and optimization practices of the Scripting development environment  / 297  16.1  uses VIM instead of the VI editor  / 297 16.2  configuration file. Introduction of important parameters of VIMRC  / 298 16.3  Let the configuration file. VIMRC effective  / 304 16.4  encode test using VIM editor  / 304 16.4.1  Code auto Indent function  /  304 16.4.2  code color Highlighting function Description  / 304 16.5 vim automatically add copyright features to the profile  / 305  16.6 vim the code folding function of the configuration file  / 305 16.7 vim Editor bulk indent and indent adjustment tips  / 305 16.8  Other VIM profile features description  / 307 16.9 vim editor common operating tips  / 307  17th Chapter  linux Signal and Trap command in enterprise application practice  / 310 17.1  Signal Knowledge &Nbsp;/ 310 17.1.1  Signal Introduction  / 310 17.1.2  signal list  / 310 17.2  Use trap control signal  / 311 17.3 linux signal and trap command Production Application Case  / 313  18th Chapter   Expect automation interactive Program Application Practice  / 317 18.1 expect Introduction  / 317 18.1.1  What is expect /  317 18.1.2  Why use expect / 317 18.2  to install expect software  / 318 18.3   Small test sledgehammer: the important command and practice of realizing automatic interaction of expect automatic interactive function  / 318 18.4 expect program  / 319 18.4.1  spawn Command  / 320 18.4.2 expect Command  / 320 18.4.3 send command  /  323 18.4.4 exp_continue Command  / 324 18.4.5 send_user command  / 324 18.4.6  exit Command  / 325 18.4.7 expect Common Command summary  / 325 18.5 expect program variable  /  326 18.5.1  General variables  / 326 18.5.2  Special parameter variables  / 326 18.6  The IF condition statement in the expect program  / 327 18.7 expecKeywords in t  / 329 18.7.1 eof keyword  / 329 18.7.2 timeout keyword  / 329  18.8  Enterprise Production scenario expect case  / 330 18.8.1  Batch execution command  / 330 18.8.2  Bulk Send files  / 332 18.8.3  batch execute shell scripts  / 334 18.8.4  automate deployment of SSH key certification +ansible Project combat  / 337 18.9  This chapter  / 339  19th Chapter   Enterprise Shell face test and enterprise operation and maintenance practical cases  / 340  19.1  Enterprise shell face test case  / 340 19.1.1  face question 1: Batch generate random character file name  / 340 19.1.2  Interview 2: Batch rename  / 341 19.1.3  face question 3: Batch Create special requirements user  / 342 19.1.4  face question 4: Scan the network for surviving hosts  / 342 19.1.5  5: Solve Dos attack  / 343 19.1.6  face test 6:mysql database sub-Library backup  /  344 19.1.7  Test 7:mysql Database sub-list backup  / 344 19.1.8  face question 8: Filter words that match the length  / 344  19.1.9  face test 9:mysql master-slave replication anomaly monitoring  / 344 19.1.10  face question 10: compare integer size  / 344 19.1.11   Question 11: Menu automation Software Deployment  /&NBsp;344 19.1.12  test questions 12:web and MySQL service anomaly monitoring  / 345 19.1.13  test 13: Monitoring memcached Cache Service  /  345 19.1.14  14: Development script to implement intrusion detection and alarm  / 346 19.1.15  face question 15: Develop Rsync service startup script  /  349 19.1.16  Test 16: Develop MySQL multi-instance startup script  / 349 19.1.17  face question 17: Develop student practice lottery script  /  351 19.1.18  question 18: Crack random number  / 353 19.1.19  face question 19: Batch Check multiple website address is normal  /  354 19.1.20  20: Words and letters to reorder  / 355 19.1.21  face question 21: Develop script Management Server side lvs /  357 19.1.22  Face test 22:lvs node Health check and management script  / 359 19.1.23  face test 23:lvs Client Configuration script  / 360  19.1.24  question 24: Simulation keepalived software High availability  / 361 19.1.25  face question 25: Write a positive (or long) square shape  / 362  19.1.26  26: Writing isosceles triangle graphics characters  / 363 19.1.27  faces question 27: Writing right-angled trapezoidal graphic characters  / 364  19.1.28  face Test 28:51cto blog crawler script  / 365 19.1.29  face test 29:nginx load node condition monitoring  / 366 19.2  shell Classic Program case: Coax wife and girlChild Artifact  / 369 19.2.1  function Introduction  / 369 19.2.2  how to use  / 369 19.2.3  girllove Tool content Template  / 370 19.2.4 girllove tool Shell source Comment  / 371 19.2.5  Girllove Final Results  / 376  20th chapter   Sub Shell and shell nesting pattern knowledge application  / 377 20.1  Child shell knowledge and practice Description  / 377 20.1.1  What is the common way and characteristics of sub-shell / 377 20.1.2  shell  / 378 20.2  sub-shell "pit" in enterprise applications  / 383 20.2.1  "pits" encountered when using pipelines and while loops  /  383 20.2.2  solving the "pit" of the while loop encounters the pattern description of the  / 385 20.3 shell call script  / 386  20.3.1 fork mode call script Knowledge  / 386 21.3.2 exec mode call Script  / 386 21.3.3  Source mode call Script  / 387 20.4 shell 3 different practice methods for invoking scripts  / 387 20.4.1  Develop a shell script that tests the differences between different modes  / 387 20.4.2  compare the difference between fork mode and source mode  / 390 20.4.3  Comparison between exec mode and source mode  / 391 20.5 shellScript 3 different modes of application scenario  / 391  attach   record  linux important command summary  / 393 


This article is from the "Old Boys Linux Training" blog, make sure to keep this source http://oldboy.blog.51cto.com/2561410/1890533

The old boy new book Shell programming actual combat scheduled to begin-Package parcel answer

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.