자료유형 | E-Book |
---|---|
개인저자 | Ebrahim, Mokhtar. Mallett, Andrew. |
서명/저자사항 | Mastering Linux Shell Scripting :a practical guide to Linux command-line, Bash scripting, and Shell programming, 2nd Edition. |
판사항 | 2nd ed. |
발행사항 | Birmingham : Packt Publishing, 2018. |
형태사항 | 1 online resource (273 pages) |
소장본 주기 | Master record variable field(s) change: 072 |
ISBN | 9781788990158 1788990153 1788990552 9781788990554 |
EAN | 9781788990554 |
일반주기 |
Chapter 7: Creating Building Blocks with Functions.
|
내용주기 | Cover; Copyright and Credits; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: The What and Why of Scripting with Bash; Technical requirements; Types of Linux shells; What is bash scripting?; The bash command hierarchy; Command type; Command PATH; Preparing text editors for scripting; Configuring vim; Configuring nano; Configuring gedit; Creating and executing scripts; Hello World!; Executing the script; Checking the exit status; Ensuring a unique name; Hello Dolly!; Running the script with arguments; The importance of correct quotes; Printing the script name. Declaring variablesUser-defined variables; Environment variables; Variable scope; Command substitution; Debugging your scripts; Summary; Questions; Further reading; Chapter 2: Creating Interactive Scripts; Technical requirements; Using echo with options; Basic script using read; Script comments; Enhancing scripts with read prompts; Limiting the number of entered characters; Controlling the visibility of the entered text; Passing options; Passing parameters with options; Read options values; Try to be standard; Enhancing learning with simple scripts; Backing-up with scripts. Connecting to a serverVersion 1 -- ping; Version 2 -- SSH; Version 3 -- MySQL/MariaDB; Reading files; Summary; Questions; Further reading; Chapter 3: Conditions Attached; Technical requirements; Simple decision paths using command-line lists; Verifying user input with lists; Using the test shell built-in; Testing strings; Testing integers; Testing file types; Creating conditional statements using if; Extending if with else; Test command with the if command; Checking strings; Checking files and directories; Checking numbers; Combining tests; More conditions with elif. Creating the backup2.sh using elifUsing case statements; Recipe -- building a frontend with grep; Summary; Questions; Further reading; Chapter 4: Creating Code Snippets; Technical requirements; Abbreviations; Using code snippets; Bringing color to the Terminal; Creating snippets using VS Code; Summary; Questions; Further reading; Chapter 5: Alternative Syntax; Technical requirement; Recapping the test command; Testing files; Adding logic; Square brackets as not seen before; Providing parameter defaults; Variables; Special parameters; Setting defaults; When in doubt -- quote! Advanced tests using [[White space; Other advanced features; Pattern matching; Regular expressions; Regular expression script; Arithmetic operations using ((; Simple math; Parameter manipulation; Standard arithmetic tests; Summary; Questions; Further reading; Chapter 6: Iterating with Loops; Technical requirement; for loops; Advanced for loops; The IFS; Counting directories and files; C-style for loops ; Nested loops; Redirecting loop output; Controlling the loop; while loops and until loops; Reading input from files; Creating operator menus; Summary; Questions; Further reading. |
요약 | Shell scripting is a quick method to prototype a complex application or a problem by automating tasks when working on Linux-based systems. This book will make use of both simple one-line commands and command sequences and complex problems can be solved with ease, from text processing to backing up sysadmin tools. |
주제명(통일서명) | Linux.fast UNIX (Computer file)fast UNIX Shells.fast |
일반주제명 | Python. COMPUTERS / Operating Systems / Linux. |
언어 | 영어 |
기타형태 저록 | Print version:Ebrahim, Mokhtar.Mastering Linux Shell Scripting, : A practical guide to Linux command-line, Bash scripting, and Shell programming, 2nd Edition.Birmingham : Packt Publishing, 짤2018 |
대출바로가기 | http://search.ebscohost.com/login.aspx?direct=true&scope=site&db=nlebk&db=nlabk&AN=1801024 |
인쇄
No. | 등록번호 | 청구기호 | 소장처 | 도서상태 | 반납예정일 | 예약 | 서비스 | 매체정보 |
---|---|---|---|---|---|---|---|---|
1 | WE00014247 | 005.432 | 가야대학교/전자책서버(컴퓨터서버)/ | 대출가능 |